| 1 | <?php |
||
| 12 | trait Type |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Build the approprivate specification for the given type |
||
| 16 | * |
||
| 17 | * @param string $type |
||
| 18 | * |
||
| 19 | * @return SpecificationInterface |
||
| 20 | */ |
||
| 21 | 224 | private function getSpecificationFor(string $type): SpecificationInterface |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Return the type of the given value |
||
| 36 | * |
||
| 37 | * @param mixed $value |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 8 | private function determineType($value): string |
|
| 59 | } |
||
| 60 |