Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | trait ValidateTrait |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $errors = array(); |
||
21 | |||
22 | /** |
||
23 | * Returns a listing of error messages. |
||
24 | * |
||
25 | * @return array |
||
26 | */ |
||
27 | 3 | public function errors() |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * Validates the specified data based on the validation rules. |
||
34 | * |
||
35 | * @param array $data |
||
36 | * @return boolean |
||
37 | */ |
||
38 | 3 | public function validate(array $data) |
|
57 |