| Total Complexity | 6 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class NestedTypeParanoia extends TypeParanoia |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param mixed $needle |
||
| 15 | */ |
||
| 16 | 60 | public static function MaybeFoundInArray($needle, array $haystack) : ? int |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param mixed $object |
||
| 25 | */ |
||
| 26 | public static function ThrowIfNotNestedType( |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param mixed $object |
||
| 45 | */ |
||
| 46 | public static function ThrowIfNotWriteableNestedType( |
||
| 47 | $object, |
||
| 48 | int $argument, |
||
| 49 | string $class, |
||
| 50 | string $function, |
||
| 51 | string ...$types |
||
| 52 | ) : void { |
||
| 53 | static::ThrowIfNotType( |
||
| 54 | $object, |
||
| 55 | $argument, |
||
| 56 | $class, |
||
| 57 | $function, |
||
| 58 | DaftNestedWriteableObject::class, |
||
| 59 | ...$types |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | |||
| 63 | public static function ForceInt($maybe) : int |
||
| 66 | } |
||
| 67 | } |
||
| 68 |