Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | #[ORM\HasLifecycleCallbacks] |
||
13 | trait HasUpdatedAtDate |
||
14 | { |
||
15 | #[ORM\Column(type: 'datetime_immutable', nullable:true)] |
||
16 | private ?DateTimeImmutable $updatedAt = null; |
||
17 | |||
18 | 1 | public function getUpdatedAt(): ?DateTimeInterface |
|
19 | { |
||
20 | 1 | return $this->updatedAt; |
|
21 | } |
||
22 | |||
23 | 1 | #[ORM\PreUpdate] |
|
27 | } |
||
28 | } |
||
29 |