| 1 | <?php |
||
| 22 | trait DateTimeCreatedAtTrait { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Created at. |
||
| 26 | * |
||
| 27 | * @var DateTime|null |
||
| 28 | */ |
||
| 29 | protected $createdAt; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the created at. |
||
| 33 | * |
||
| 34 | * @return DateTime|null Returns the created at. |
||
| 35 | */ |
||
| 36 | public function getCreatedAt(): ?DateTime { |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set the created at. |
||
| 42 | * |
||
| 43 | * @param DateTime|null $createdAt The created at. |
||
| 44 | * @return self Returns this instance. |
||
| 45 | */ |
||
| 46 | public function setCreatedAt(?DateTime $createdAt): self { |
||
| 50 | } |
||
| 51 |