| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ProductAccessExpiredException extends \RuntimeException implements ProductAccessExceptionInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var DateTimeImmutable |
||
| 13 | */ |
||
| 14 | private $expiryDate; |
||
| 15 | |||
| 16 | 2 | public function __construct(string $message, DateTimeImmutable $expiryDate) |
|
| 17 | { |
||
| 18 | 2 | parent::__construct($message); |
|
| 19 | 2 | $this->expiryDate = $expiryDate; |
|
| 20 | 2 | } |
|
| 21 | |||
| 22 | 1 | public function getExpiryDate(): DateTimeImmutable |
|
| 25 | } |
||
| 26 | } |
||
| 27 |