Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
15 | final class FieldSyntaxValidation implements ValidationInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | protected $properties; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $allowedProperties = [ |
||
26 | Keyword::NAME, |
||
27 | Keyword::DATATYPE, |
||
28 | Keyword::CONSTRAINTS, |
||
29 | Keyword::TYPE, |
||
30 | ]; |
||
31 | |||
32 | public function __construct(array $properties) |
||
33 | { |
||
34 | $this->properties = $properties; |
||
35 | } |
||
36 | |||
37 | public function validate(): void |
||
49 | 102 | } |
|
50 | } |
||
51 |