src/ViKon/Parser/rule/AbstractBlockRule.php
public function finish(Lexer $lexer) {
        if (is_array($this->exitPattern)) {
            foreach ($this->exitPattern as $exitPattern) {
                $lexer->addExitPattern($exitPattern, $this->name);
            }
        } else {
            $lexer->addExitPattern($this->exitPattern, $this->name);
        }

        return $this;
    }
public function finish(Lexer $lexer) {
        if (is_array($this->exitPattern)) {
            foreach ($this->exitPattern as $exitPattern) {
                $lexer->addExitPattern($exitPattern, $this->name);
            }
        } else {
            $lexer->addExitPattern($this->exitPattern, $this->name);
        }

        return $this;
    }
public function finish ( Lexer $ lexer ) { if ( is_array ( $ this -> exitPattern ) ) { foreach ( $ this -> exitPattern as $ exitPattern ) { $ lexer -> addExitPattern ( $ exitPattern , $ this -> name ) ; } } else { $ lexer -> addExitPattern ( $ this -> exitPattern , $ this -> name ) ; } return $ this ; }
Finish rule after connecting

@param \ViKon\Parser\Lexer\Lexer $lexer lexer instance

@return $this
Finish rule after connecting