| 1 | <?php |
||
| 10 | class AlignmentNode extends BaseNode |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $alignment; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * AlignmentNode constructor. |
||
| 19 | * |
||
| 20 | * @param array $nodes |
||
| 21 | * @param array $attributes |
||
| 22 | * @param int $lineNo |
||
| 23 | * @param string|null $tag |
||
| 24 | * @param string $alignment |
||
| 25 | * |
||
| 26 | * @throws \InvalidArgumentException |
||
| 27 | */ |
||
| 28 | 3 | public function __construct(array $nodes = [], array $attributes = [], int $lineNo = 0, string $tag = null, string $alignment = HeaderFooterWrapper::ALIGNMENT_CENTER) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param \Twig_Compiler $compiler |
||
| 37 | */ |
||
| 38 | 3 | public function compile(\Twig_Compiler $compiler) |
|
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | 3 | public function getAllowedParents(): array |
|
| 61 | } |
||
| 62 |