1 | <?php |
||
24 | class ConditionNode extends AbstractNode implements ProcessorDependencyAwareInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $conditionName; |
||
30 | |||
31 | /** |
||
32 | * @var ConditionItemInterface |
||
33 | */ |
||
34 | protected $condition; |
||
35 | |||
36 | /** |
||
37 | * Constructor, which needs a name for the condition and an instance of a |
||
38 | * condition item. |
||
39 | * |
||
40 | * @param string $conditionName Name of the condition. |
||
41 | * @param ConditionItemInterface $condition Instance of the condition item. |
||
42 | */ |
||
43 | public function __construct($conditionName, ConditionItemInterface $condition) |
||
48 | |||
49 | /** |
||
50 | * @param ConditionProcessor $processor |
||
51 | * @param ActivationInterface $activation |
||
52 | */ |
||
53 | public function injectProcessorDependencies(ConditionProcessor $processor, ActivationInterface $activation) |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | public function getCssResult() |
||
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | */ |
||
71 | public function getJavaScriptResult() |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | public function getPhpResult(PhpConditionDataObject $dataObject) |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getConditionName() |
||
93 | |||
94 | /** |
||
95 | * @return ConditionItemInterface |
||
96 | */ |
||
97 | public function getCondition() |
||
101 | } |
||
102 |