| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 16 | 18 | protected static function ThrowIfNotType( | |
| 17 | $object, | ||
| 18 | string $type, | ||
| 19 | int $argument, | ||
| 20 | string $function | ||
| 21 |     ) : void { | ||
| 22 | 18 |         if (false === is_a($object, $type, is_string($object))) { | |
| 23 | 12 | throw new DaftObjectRepositoryTypeByClassMethodAndTypeException( | |
| 24 | 12 | $argument, | |
| 25 | 12 | static::class, | |
| 26 | 12 | $function, | |
| 27 | 12 | $type, | |
| 28 | 12 | is_string($object) ? $object : get_class($object) | |
| 29 | ); | ||
| 33 |