1 | <?php |
||
27 | class FieldIsNotEmptyCondition extends AbstractConditionItem |
||
28 | { |
||
29 | const CONDITION_IDENTIFIER = 'fieldIsNotEmpty'; |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | * @var array |
||
34 | */ |
||
35 | protected static $javaScriptFiles = [ |
||
36 | 'EXT:formz/Resources/Public/JavaScript/Conditions/Formz.Condition.FieldIsNotEmpty.js' |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | * @validate NotEmpty |
||
42 | */ |
||
43 | protected $fieldName; |
||
44 | |||
45 | /** |
||
46 | * @param string $fieldName |
||
47 | */ |
||
48 | public function __construct($fieldName) |
||
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | public function getCssResult() |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | public function getJavaScriptResult() |
||
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | public function getPhpResult(PhpConditionDataObject $dataObject) |
||
80 | |||
81 | /** |
||
82 | * Checks the condition configuration/options. |
||
83 | * |
||
84 | * If any syntax/configuration error is found, an exception of type |
||
85 | * `InvalidConditionException` must be thrown. |
||
86 | * |
||
87 | * @param FormDefinition $formDefinition |
||
88 | * @throws InvalidConditionException |
||
89 | */ |
||
90 | protected function checkConditionConfiguration(FormDefinition $formDefinition) |
||
96 | } |
||
97 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.