public function setEosTokenName(string $name) : BasicLexer
    {
        if (strlen($name) == 0) {
            throw new \InvalidArgumentException('The name of the EOS token must be not empty.');
        }

        $this->eosTokenName = $name;

        return $this;
    }
public function setEosTokenName(string $name) : BasicLexer
    {
        if (strlen($name) == 0) {
            throw new \InvalidArgumentException('The name of the EOS token must be not empty.');
        }

        $this->eosTokenName = $name;

        return $this;
    }
public function setEosTokenName ( string $ name ) : BasicLexer { if ( strlen ( $ name ) == 0 ) { throw new \ InvalidArgumentException ( 'The name of the EOS token must be not empty.' ) ; } $ this -> eosTokenName = $ name ; return $ this ; }
Sets the name of the end-of-string token

@param string $name The name of the token

@return BasicLexer The BasicLexer itself

@throws InvalidArgumentException If the name is empty
Sets the name of the end - of - string token