| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class InvalidOperationException extends Exception |
||
| 9 | { |
||
| 10 | private string $invalidOperation; |
||
| 11 | |||
| 12 | public function __construct( |
||
| 13 | string $invalidOperation, |
||
| 14 | string $message = '', |
||
| 15 | int $code = 0, |
||
| 16 | Throwable $previous = null |
||
| 17 | ) |
||
| 18 | { |
||
| 19 | parent::__construct($message, $code, $previous); |
||
| 20 | $this->invalidOperation = $invalidOperation; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getInvalidOperation(): string |
||
| 26 | } |
||
| 27 | } |