1 | <?php |
||
25 | class ConditionParserFactory implements SingletonInterface |
||
26 | { |
||
27 | use FacadeInstanceTrait; |
||
28 | |||
29 | /** |
||
30 | * @var ConditionTree[] |
||
31 | */ |
||
32 | private $trees = []; |
||
33 | |||
34 | /** |
||
35 | * Will parse a condition expression, to build a tree containing one or |
||
36 | * several nodes which represent the condition. See the class |
||
37 | * `ConditionTree` for more information. |
||
38 | * |
||
39 | * @param ActivationInterface $activation |
||
40 | * @return ConditionTree |
||
41 | */ |
||
42 | public function parse(ActivationInterface $activation) |
||
56 | |||
57 | /** |
||
58 | * @param string $cacheIdentifier |
||
59 | * @param ActivationInterface $activation |
||
60 | * @return ConditionTree |
||
61 | */ |
||
62 | protected function getConditionTree($cacheIdentifier, ActivationInterface $activation) |
||
76 | |||
77 | /** |
||
78 | * @param ActivationInterface $activation |
||
79 | * @return ConditionTree |
||
80 | */ |
||
81 | protected function buildConditionTree(ActivationInterface $activation) |
||
85 | } |
||
86 |