| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | final class UnexpectedEntityException extends LogicException implements ExceptionInterface |
||
| 10 | { |
||
| 11 | |||
| 12 | private $entity; |
||
| 13 | |||
| 14 | public function __construct($entity, Throwable $previous = null) |
||
| 15 | { |
||
| 16 | $this->entity = $entity; |
||
| 17 | parent::__construct("Invalid entity", 0, $previous); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getEntity() |
||
| 23 | } |
||
| 24 | } |
||
| 25 |