| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 1 | public function __construct( |
|
| 16 | int $argumentNumber, |
||
| 17 | string $className, |
||
| 18 | string $method, |
||
| 19 | string $expectedType, |
||
| 20 | string $receivedType, |
||
| 21 | int $code = 0, |
||
| 22 | Throwable $previous = null |
||
| 23 | ) { |
||
| 24 | 1 | parent::__construct( |
|
| 25 | 1 | sprintf( |
|
| 26 | 1 | 'Argument %s passed to %s::%s() must be an implementation of %s, %s given.', |
|
| 27 | 1 | $argumentNumber, |
|
| 28 | 1 | $className, |
|
| 29 | 1 | $method, |
|
| 30 | 1 | $expectedType, |
|
| 31 | 1 | $receivedType |
|
| 32 | ), |
||
| 33 | 1 | $code, |
|
| 34 | 1 | $previous |
|
| 35 | ); |
||
| 38 |