1 | <?php |
||
26 | abstract class AbstractActivation extends AbstractFormzConfiguration implements ActivationInterface, DataPreProcessorInterface |
||
27 | { |
||
28 | use ParentsTrait; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $expression; |
||
34 | |||
35 | /** |
||
36 | * @var \ArrayObject<Romm\Formz\Configuration\Form\Condition\ConditionItemResolver> |
||
37 | */ |
||
38 | protected $conditions = []; |
||
39 | |||
40 | /** |
||
41 | * @var ActivationUsageInterface |
||
42 | */ |
||
43 | private $rootObject; |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getExpression() |
||
52 | |||
53 | /** |
||
54 | * @param string $expression |
||
55 | */ |
||
56 | public function setExpression($expression) |
||
60 | |||
61 | /** |
||
62 | * Will merge the items with the ones from the `$activationCondition` |
||
63 | * property of the root form configuration. |
||
64 | * |
||
65 | * @return ConditionItemInterface[] |
||
66 | */ |
||
67 | public function getConditions() |
||
79 | |||
80 | /** |
||
81 | * @param string $name Name of the item. |
||
82 | * @return bool |
||
83 | */ |
||
84 | public function hasCondition($name) |
||
90 | |||
91 | /** |
||
92 | * Return the item with the given name. |
||
93 | * |
||
94 | * @param string $name Name of the item. |
||
95 | * @return ConditionItemInterface |
||
96 | * @throws EntryNotFoundException |
||
97 | */ |
||
98 | public function getCondition($name) |
||
111 | |||
112 | /** |
||
113 | * @param string $name |
||
114 | * @param ConditionItemInterface $condition |
||
115 | */ |
||
116 | public function addCondition($name, ConditionItemInterface $condition) |
||
120 | |||
121 | /** |
||
122 | * @return ActivationUsageInterface |
||
123 | */ |
||
124 | public function getRootObject() |
||
128 | |||
129 | /** |
||
130 | * @param ActivationUsageInterface $rootObject |
||
131 | */ |
||
132 | public function setRootObject(ActivationUsageInterface $rootObject) |
||
136 | |||
137 | /** |
||
138 | * @param DataPreProcessor $processor |
||
139 | */ |
||
140 | public static function dataPreProcessor(DataPreProcessor $processor) |
||
159 | } |
||
160 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.