1 | <?php |
||
14 | class Path extends Node |
||
15 | { |
||
16 | /** @var AttributePath */ |
||
17 | private $attributePath; |
||
18 | |||
19 | /** @var ValuePath */ |
||
20 | private $valuePath; |
||
21 | |||
22 | /** |
||
23 | * @param AttributePath $attributePath |
||
24 | * |
||
25 | * @return Path |
||
26 | */ |
||
27 | public static function fromAttributePath(AttributePath $attributePath) |
||
31 | |||
32 | /** |
||
33 | * @param ValuePath $valuePath |
||
34 | * @param AttributePath|null $attributePath |
||
35 | * |
||
36 | * @return Path |
||
37 | */ |
||
38 | public static function fromValuePath(ValuePath $valuePath, AttributePath $attributePath = null) |
||
42 | |||
43 | /** |
||
44 | * @param AttributePath $attributePath |
||
45 | * @param ValuePath $valuePath |
||
46 | */ |
||
47 | private function __construct(AttributePath $attributePath = null, ValuePath $valuePath = null) |
||
52 | |||
53 | public function dump() |
||
67 | |||
68 | /** |
||
69 | * @return AttributePath |
||
70 | */ |
||
71 | public function getAttributePath() |
||
75 | |||
76 | /** |
||
77 | * @return ValuePath |
||
78 | */ |
||
79 | public function getValuePath() |
||
83 | } |
||
84 |