| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | final class AddressNotSortableException extends DomainException implements ExceptionInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | private $address; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param int|string $address |
||
| 17 | * @param Throwable|null $previous |
||
| 18 | */ |
||
| 19 | 6 | public function __construct($address, Throwable $previous = null) |
|
| 20 | { |
||
| 21 | 6 | $this->address = $address; |
|
| 22 | 6 | parent::__construct("Index/property is not sortable: {$this->address}", 0, $previous); |
|
| 23 | 6 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return int|string |
||
| 27 | */ |
||
| 28 | 2 | public function getAddress() |
|
| 31 | } |
||
| 32 | } |
||
| 33 |