1 | <?php |
||
22 | class ConditionNode extends AbstractNode |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $conditionName; |
||
28 | |||
29 | /** |
||
30 | * @var ConditionItemInterface |
||
31 | */ |
||
32 | protected $condition; |
||
33 | |||
34 | /** |
||
35 | * Constructor, which needs a name for the condition and an instance of a |
||
36 | * condition item. |
||
37 | * |
||
38 | * @param string $conditionName Name of the condition. |
||
39 | * @param ConditionItemInterface $condition Instance of the condition item. |
||
40 | */ |
||
41 | public function __construct($conditionName, ConditionItemInterface $condition) |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public function getCssResult() |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | public function getJavaScriptResult() |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | public function getPhpResult(PhpConditionDataObject $dataObject) |
||
70 | |||
71 | /** |
||
72 | * @return ConditionItemInterface |
||
73 | */ |
||
74 | public function getCondition() |
||
78 | } |
||
79 |