These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Amarkal\UI; |
||
4 | |||
5 | /** |
||
6 | * Describes a component with a validatable value. |
||
7 | * |
||
8 | * This interface is applicable for component that allow free user input, |
||
9 | * such as textfields and textareas. |
||
10 | * |
||
11 | * A validatable component must have a validation function as part of its default |
||
12 | * model. If a validation function is not provided as an argument when during |
||
13 | * instantiation, the validation process will be skipped. |
||
14 | */ |
||
15 | interface ValidatableComponentInterface |
||
16 | extends ValueComponentInterface |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
17 | { |
||
18 | /** |
||
19 | * Component state after validation. |
||
20 | * @see self::set_validity() |
||
21 | */ |
||
22 | const INVALID = 'invalid'; |
||
23 | const VALID = 'valid'; |
||
24 | |||
25 | const DEFAULT_MESSAGE = 'The value given is invalid'; |
||
26 | } |