| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class IsBooleanValidator extends ValidatorHasNotNull { |
||
| 9 | |||
| 10 | 2 | public function __construct(){ |
|
| 11 | 2 | $this->message="This value should be a boolean"; |
|
| 12 | 2 | } |
|
| 13 | 2 | public function validate($value) { |
|
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritDoc} |
||
| 20 | * @see \Ubiquity\contents\validation\validators\Validator::getParameters() |
||
| 21 | */ |
||
| 22 | 1 | public function getParameters(): array { |
|
| 27 |