| 1 | <?php |
||
| 6 | class NodeParserChain implements NodeParserInterface |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var NodeParserInterface[] |
||
| 10 | */ |
||
| 11 | protected $nodeParsers; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param NodeParserInterface $nodeParser |
||
| 15 | * @return $this |
||
| 16 | */ |
||
| 17 | 64 | public function addNodeParser(NodeParserInterface $nodeParser) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritdoc |
||
| 25 | */ |
||
| 26 | 64 | public function parse(TokenStream $tokenStream) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritdoc |
||
| 46 | */ |
||
| 47 | 64 | public function supports(TokenStream $tokenStream) |
|
| 57 | } |
||
| 58 |