1 | <?php |
||
11 | class AlignmentTokenParser extends BaseTokenParser |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $alignment; |
||
17 | |||
18 | /** |
||
19 | * AlignmentTokenParser constructor. |
||
20 | * |
||
21 | * @param array $attributes optional attributes for the corresponding node |
||
22 | * @param string $alignment |
||
23 | * |
||
24 | * @throws \InvalidArgumentException |
||
25 | */ |
||
26 | 8 | public function __construct(array $attributes = [], string $alignment = HeaderFooterWrapper::ALIGNMENT_CENTER) |
|
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | * |
||
36 | * @throws \InvalidArgumentException |
||
37 | */ |
||
38 | 3 | public function createNode(array $nodes = [], int $lineNo = 0): \Twig_Node |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 11 | public function getTag() |
|
50 | } |
||
51 |