src/LinkifyIt/LinkifyIt.php
public function add($schema, $definition)
    {
        if(is_array($definition)) $definition = (object)$definition;
        $this->__schemas__[$schema] = $definition;
        $this->compile();
        return $this;
    }
public function add($schema, $definition)
    {
        if(is_array($definition)) $definition = (object)$definition;
        $this->__schemas__[$schema] = $definition;
        $this->compile();
        return $this;
    }
public function add ( $ schema , $ definition ) { if ( is_array ( $ definition ) ) $ definition = ( object ) $ definition ; $ this -> __schemas__ [ $ schema ] = $ definition ; $ this -> compile ( ) ; return $ this ; }
Add new rule definition. See constructor description for details.

@param string        $schema rule name (fixed pattern prefix)
@param string|object $definition schema definition
@return $this
Add new rule definition . See constructor description for details .