| Total Complexity | 6 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class MixedType implements Type |
||
| 15 | { |
||
| 16 | public function describe() : string |
||
| 17 | { |
||
| 18 | return 'mixed'; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param mixed $value |
||
| 23 | */ |
||
| 24 | public function validate($value) : bool |
||
| 25 | { |
||
| 26 | return $value === null || is_scalar($value) || is_array($value) || is_object($value); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function acceptsNull() : bool |
||
| 32 | } |
||
| 33 | } |
||
| 34 |