1 | <?php |
||
13 | trait Type |
||
14 | { |
||
15 | /** |
||
16 | * Build the approprivate specification for the given type |
||
17 | * |
||
18 | * @param string $type |
||
19 | * |
||
20 | * @return SpecificationInterface |
||
21 | 226 | */ |
|
22 | private function getSpecificationFor(string $type): SpecificationInterface |
||
38 | |||
39 | /** |
||
40 | * Return the type of the given value |
||
41 | 8 | * |
|
42 | * @param mixed $value |
||
43 | 8 | * |
|
44 | * @return string |
||
45 | */ |
||
46 | 8 | private function determineType($value): string |
|
70 | } |
||
71 |