| 1 | <?php |
||
| 19 | class ExtendsBehaviour implements BehaviourInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Parent (extended) node, treat it as page or element layout. |
||
| 23 | * |
||
| 24 | * @var Node |
||
| 25 | */ |
||
| 26 | private $parent = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Attributes defined using extends tag. |
||
| 30 | * |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | private $attributes = []; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | private $token = []; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param Node $parent |
||
| 42 | * @param array $token |
||
| 43 | */ |
||
| 44 | public function __construct(Node $parent, array $token) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Node which are getting extended. |
||
| 53 | * |
||
| 54 | * @return Node |
||
| 55 | */ |
||
| 56 | public function extendedNode() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Every import defined in parent (extended node). |
||
| 63 | * |
||
| 64 | * @return ImporterInterface[] |
||
| 65 | */ |
||
| 66 | public function parentImports() |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Set of blocks defined at moment of extend definition. |
||
| 78 | * |
||
| 79 | * @return array |
||
| 80 | */ |
||
| 81 | public function dynamicBlocks() |
||
| 85 | } |