1 | <?php |
||
18 | abstract class AbstractNode implements NodeInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var NodeInterface |
||
22 | */ |
||
23 | protected $parent; |
||
24 | |||
25 | /** |
||
26 | * @var ConditionTree |
||
27 | */ |
||
28 | protected $tree; |
||
29 | |||
30 | /** |
||
31 | * @return NodeInterface |
||
32 | */ |
||
33 | public function getParent() |
||
37 | |||
38 | /** |
||
39 | * @param NodeInterface $parent |
||
40 | */ |
||
41 | public function setParent(NodeInterface $parent) |
||
45 | |||
46 | /** |
||
47 | * @return ConditionTree |
||
48 | */ |
||
49 | public function getTree() |
||
53 | |||
54 | /** |
||
55 | * @param ConditionTree $tree |
||
56 | */ |
||
57 | public function setTree(ConditionTree $tree) |
||
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | public function along(callable $callback) |
||
69 | |||
70 | /** |
||
71 | * @param mixed $value |
||
72 | * @return array |
||
73 | */ |
||
74 | protected function toArray($value) |
||
80 | } |
||
81 |