Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class PrimitiveType implements ValidateArgument |
||
12 | { |
||
13 | private $function; |
||
14 | private $type; |
||
15 | |||
16 | 254 | public function __construct(string $type) |
|
17 | { |
||
18 | 254 | $this->function = 'is_'.$type; |
|
19 | 254 | $this->type = $type; |
|
20 | 254 | } |
|
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | 178 | public function __invoke($value, int $position): void |
|
31 | } |
||
32 | 169 | } |
|
34 |