| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | class ArgumentNotAClosureException extends Exception |
||
| 33 | { |
||
| 34 | /** |
||
| 35 | * Redefine exception, so the message is not an optional parameter |
||
| 36 | * |
||
| 37 | * @param string $message Message of the Exception |
||
| 38 | * @param number $code Code of the exception |
||
| 39 | * @param Throwable $previous Previously thrown exception |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function __construct($message = '', $code = 0, Throwable $previous = null) |
||
| 44 | { |
||
| 45 | $message = 'Argument is not a Closure'; |
||
| 46 | $code = 4413; |
||
| 47 | |||
| 48 | // make sure everything is assigned properly |
||
| 49 | parent::__construct($message, $code, $previous); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Custom string representation of the object |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function __toString() |
||
| 60 | } |
||
| 61 | } |
||
| 62 |