| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | class Primitives |
||
| 8 | { |
||
| 9 | private const TYPES = [ |
||
| 10 | 'string' => 'is_string', |
||
| 11 | 'bool' => 'is_bool', |
||
| 12 | 'int' => 'is_int', |
||
| 13 | 'float' => 'is_float', |
||
| 14 | 'object' => 'is_object', |
||
| 15 | 'array' => 'is_array', |
||
| 16 | 'resource' => 'is_resource', |
||
| 17 | 'void' => 'is_null', |
||
| 18 | ]; |
||
| 19 | |||
| 20 | public function includes(string $type): bool |
||
| 23 | } |
||
| 24 | |||
| 25 | public function checkFor(string $type): string |
||
| 30 |