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