| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class BadMethodCallException extends PHPBadMethodCallException implements SevereExceptionInterface, LocatableExceptionInterface |
||
| 17 | { |
||
| 18 | use HasSeverity; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Exception thrown if a callback refers to an undefined method or if some arguments are missing. |
||
| 22 | * |
||
| 23 | * @param string $message The Exception message to throw. |
||
| 24 | * @param int $code The Exception code. |
||
| 25 | * @param \Throwable $previous The previous throwable used for the exception chaining. |
||
| 26 | */ |
||
| 27 | public function __construct(string $message = '', int $code = 0, Throwable $previous = null) |
||
| 28 | { |
||
| 29 | parent::__construct($message, $code, $previous); |
||
| 30 | |||
| 31 | $this->severity = E_ERROR; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * If required, set the file and line where the Exception was thrown. |
||
| 36 | * |
||
| 37 | * @param string $file |
||
| 38 | * @param int $line |
||
| 39 | * |
||
| 40 | * @return $this |
||
| 41 | */ |
||
| 42 | public function onFileLine(string $file, int $line): LocatableExceptionInterface |
||
| 50 | } |
||
| 51 | } |
||
| 52 |