Conditions | 3 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | 2 | public function __construct($value, $expectedType) |
|
12 | { |
||
13 | 2 | parent::__construct(sprintf( |
|
14 | 2 | 'Expected argument of type %s, %s given.', |
|
15 | 2 | is_array($expectedType) ? '('.implode(' | ', $expectedType).')' : $expectedType, |
|
16 | 2 | is_object($value) ? get_class($value) : gettype($value) |
|
17 | 2 | )); |
|
18 | 2 | } |
|
19 | } |
||
20 |