Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class OperationException extends RuntimeException implements |
||
14 | OperationExceptionInterface |
||
15 | { |
||
16 | /** @var OperationInterface|null */ |
||
17 | private $operation; |
||
18 | |||
19 | /** |
||
20 | * Constructor. |
||
21 | * |
||
22 | * @param string $message |
||
23 | * @param OperationInterface|null $operation |
||
24 | * @param Throwable|null $previous |
||
25 | */ |
||
26 | 1 | public function __construct( |
|
33 | 1 | } |
|
34 | |||
35 | /** |
||
36 | * Get the operation that caused the exception to occur. |
||
37 | * Returns null if the operation cannot be determined. |
||
38 | * |
||
39 | * @return OperationInterface|null |
||
40 | */ |
||
41 | 1 | public function getOperation(): ?OperationInterface |
|
46 |