Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | trait LifecycleDateTimeTrait |
||
17 | { |
||
18 | /** |
||
19 | * @var DateTime|null |
||
20 | */ |
||
21 | protected $createdAt; |
||
22 | |||
23 | /** |
||
24 | * @var DateTime|null |
||
25 | */ |
||
26 | protected $updatedAt; |
||
27 | |||
28 | public function setCreatedAt(?DateTime $createdAt): void |
||
29 | { |
||
30 | $this->createdAt = $createdAt; |
||
31 | } |
||
32 | |||
33 | public function getCreatedAt(): ?DateTime |
||
34 | { |
||
35 | return $this->createdAt; |
||
36 | } |
||
37 | |||
38 | public function setUpdatedAt(?DateTime $updatedAt): void |
||
39 | { |
||
40 | $this->updatedAt = $updatedAt; |
||
41 | } |
||
42 | |||
43 | public function getUpdatedAt(): ?DateTime |
||
46 | } |
||
47 | } |
||
48 |