Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
11 | public static function instanceOf(string $expected, $subject, $where) |
||
12 | { |
||
13 | if (!is_a($subject, $expected)) { |
||
14 | throw new InvalidArgumentException( |
||
15 | sprintf( |
||
16 | "[%s] Expected an instance of (%s). Got (%s).", |
||
17 | self::getType($where), |
||
18 | self::getType($subject), |
||
19 | self::getType($expected) |
||
20 | ) |
||
44 |