| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | abstract class UncompletedOperationException extends RuntimeException implements AuthorizationException |
||
| 16 | { |
||
| 17 | private $grantable; |
||
| 18 | |||
| 19 | 5 | public function __construct(Grantable $grantable, Throwable $previous = null) |
|
| 23 | 5 | } |
|
| 24 | |||
| 25 | abstract protected function getOperationName(): string; |
||
| 26 | |||
| 27 | public function getGrantable(): Grantable |
||
| 28 | { |
||
| 29 | return $this->grantable; |
||
| 30 | } |
||
| 31 | |||
| 32 | 5 | private function makeMessage(Grantable $grantable): string |
|
| 35 | } |
||
| 36 | } |
||
| 37 |