Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | trait OldValueSupportTrait |
||
6 | { |
||
7 | /** |
||
8 | * Enable the retrievement of the submitted value in case of validation |
||
9 | * errors. This submitted value may be automatically shown when there is a |
||
10 | * validation error. |
||
11 | * |
||
12 | * @var bool |
||
13 | */ |
||
14 | protected $enableOldSupport; |
||
15 | |||
16 | /** |
||
17 | * Make the value attribute for an input item, with auto lookup for a |
||
18 | * submitted value in case of validation errors. |
||
19 | * |
||
20 | * @param string $errorKey The key name to lookup for validation errors |
||
21 | * @param mixed $default The default value for the input element |
||
22 | * @return mixed |
||
23 | */ |
||
24 | 2 | public function makeItemValue($errorKey, $default = null) |
|
29 |