Phalcon\Mvc\View\Engine\Twig\TokenParsers\Assets::parse PHP Method

parse() public method

public parse ( Twig_Token $token ) : Twig_NodeInterface
$token Twig_Token
return Twig_NodeInterface
    public function parse(\Twig_Token $token)
    {
        $methodName = $this->parser->getStream()->expect(\Twig_Token::NAME_TYPE)->getValue();
        $arguments = $this->parser->getExpressionParser()->parseArguments();
        $this->parser->getStream()->expect(\Twig_Token::BLOCK_END_TYPE);
        return new Node(['arguments' => $arguments], ['methodName' => $methodName], $token->getLine(), $this->getTag());
    }