| 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 | */ |
||
| 22 | 228 | private function getSpecificationFor(string $type): SpecificationInterface |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Return the type of the given value |
||
| 41 | * |
||
| 42 | * @param mixed $value |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 10 | private function determineType($value): string |
|
| 70 | } |
||
| 71 |