1 | <?php |
||
11 | class HeaderFooterTokenParser extends BaseTokenParser |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $baseType; |
||
17 | |||
18 | /** |
||
19 | * HeaderFooterTokenParser constructor. |
||
20 | * |
||
21 | * @param array $attributes optional attributes for the corresponding node |
||
22 | * @param string $baseType |
||
23 | * |
||
24 | * @throws \InvalidArgumentException |
||
25 | */ |
||
26 | 8 | public function __construct(array $attributes = [], string $baseType = HeaderFooterWrapper::BASETYPE_HEADER) |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | 3 | public function configureParameters(\Twig_Token $token): array |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | * |
||
53 | * @throws \InvalidArgumentException |
||
54 | */ |
||
55 | 3 | public function createNode(array $nodes = [], int $lineNo = 0): \Twig_Node |
|
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | 11 | public function getTag() |
|
67 | } |
||
68 |