| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ObjectNotFoundException extends \Exception |
||
| 8 | { |
||
| 9 | protected string $key; |
||
| 10 | protected \DateTime $datetime; |
||
| 11 | |||
| 12 | 8 | public function __construct(string $key, \DateTime $datetime) |
|
| 13 | { |
||
| 14 | 8 | $this->key = $key; |
|
| 15 | 8 | $this->datetime = $datetime; |
|
| 16 | |||
| 17 | 8 | parent::__construct(sprintf('Object with key "%s" not found', $key)); |
|
| 18 | 8 | } |
|
| 19 | |||
| 20 | 1 | public function getKey(): string |
|
| 21 | { |
||
| 22 | 1 | return $this->key; |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | public function getDatetime(): \DateTime |
|
| 28 | } |
||
| 29 | } |
||
| 30 |