| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class Location |
||
| 9 | { |
||
| 10 | private $guid; |
||
| 11 | private $label; |
||
| 12 | private $updatedAt; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param UuidInterface $guid |
||
| 16 | * @param Label $label |
||
| 17 | * @param \DateTimeInterface $updatedAt |
||
| 18 | */ |
||
| 19 | 9 | public function __construct(UuidInterface $guid, Label $label, \DateTimeInterface $updatedAt) |
|
| 20 | { |
||
| 21 | 9 | $this->guid = $guid; |
|
| 22 | 9 | $this->label = $label; |
|
| 23 | 9 | $this->updatedAt = datetimeinterface_to_datetimeimmutable($updatedAt); |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | public function getGuid(): UuidInterface |
|
| 27 | { |
||
| 28 | 1 | return $this->guid; |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function getLabel(): Label |
|
| 32 | { |
||
| 33 | 1 | return $this->label; |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | public function getUpdatedAt(): \DateTimeImmutable |
|
| 39 | } |
||
| 40 | } |
||
| 41 |