Exemplo n.º 1
0
 /**
  * Parse next filter token. 
  * 
  * @return  FilterNode
  */
 protected function parseFilter()
 {
     $block = null;
     $token = $this->expectTokenType('filter');
     $attributes = $this->acceptTokenType('attributes');
     $block = $this->parseTextBlock();
     $node = new FilterNode($token->value, null !== $attributes ? $attributes->attributes : [], $this->lexer->getCurrentLine());
     $node->setBlock($block);
     return $node;
 }