| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | trait EntityTimestampableTrait |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @ORM\Column(type="datetime", nullable=true, options={"default"="CURRENT_TIMESTAMP"}) |
||
| 13 | */ |
||
| 14 | private ?\DateTimeInterface $createdAt; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @ORM\Column(type="datetime", nullable=true, options={"default"="CURRENT_TIMESTAMP"}) |
||
| 18 | */ |
||
| 19 | private ?\DateTimeInterface $updatedAt; |
||
| 20 | |||
| 21 | public function getCreatedAt(): ?\DateTimeInterface |
||
| 22 | { |
||
| 23 | return $this->createdAt; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setCreatedAt(?\DateTimeInterface $createdAt): self |
||
| 27 | { |
||
| 28 | $this->createdAt = $createdAt; |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getUpdatedAt(): ?\DateTimeInterface |
||
| 36 | } |
||
| 37 | |||
| 38 | public function setUpdatedAt(?\DateTimeInterface $updatedAt): self |
||
| 45 |