1 | <?php |
||
23 | class ConditionTree |
||
24 | { |
||
25 | /** |
||
26 | * @var NodeInterface |
||
27 | */ |
||
28 | private $rootNode; |
||
29 | |||
30 | /** |
||
31 | * @var Result |
||
32 | */ |
||
33 | private $result; |
||
34 | |||
35 | /** |
||
36 | * @var ConditionProcessor |
||
37 | */ |
||
38 | private $conditionProcessor; |
||
39 | |||
40 | /** |
||
41 | * @param NodeInterface $rootNode |
||
42 | * @param Result $result |
||
43 | */ |
||
44 | public function __construct(NodeInterface $rootNode, Result $result) |
||
49 | |||
50 | /** |
||
51 | * @param ConditionProcessor $conditionProcessor |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function attachConditionProcessor(ConditionProcessor $conditionProcessor) |
||
60 | |||
61 | /** |
||
62 | * @return array |
||
63 | */ |
||
64 | public function getCssConditions() |
||
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | public function getJavaScriptConditions() |
||
76 | |||
77 | /** |
||
78 | * @return bool |
||
79 | */ |
||
80 | public function getPhp() |
||
84 | |||
85 | /** |
||
86 | * @return Result |
||
87 | */ |
||
88 | public function getResult() |
||
92 | } |
||
93 |