| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class ViewValidator implements ValidatorInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $name = ''; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $message = ''; |
||
| 27 | |||
| 28 | 9 | public function __construct($name) |
|
| 31 | 9 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Checks if the validator fails. |
||
| 35 | * |
||
| 36 | * @return boolean |
||
| 37 | */ |
||
| 38 | 9 | public function fails() |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Gets the rendered message. |
||
| 53 | * |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | 3 | public function getMessage() |
|
| 61 |