/** * @param TokenParserInterface $tokenParser * @return $this */ public function addTokenParser(TokenParserInterface $tokenParser) { if ($this->getParser() !== null) { $tokenParser->setParser($this->getParser()); } $this->tokenParsers[] = $tokenParser; return $this; }