| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public static function getInstance($expectedType, $argumentName, $currentValue, $code = 0) |
||
| 22 | { |
||
| 23 | return new self( |
||
| 24 | sprintf( |
||
| 25 | "%s expected for argument '%s'. Got '%s'.", |
||
| 26 | ucfirst(strtolower($expectedType)), |
||
| 27 | $argumentName, |
||
| 28 | gettype($currentValue) |
||
| 29 | ), |
||
| 30 | $code |
||
| 31 | ); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |