| Total Complexity | 4 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait TimestampableTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \DateTime |
||
| 11 | * @ORM\Column(type="datetime") |
||
| 12 | */ |
||
| 13 | protected $createdAt; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var \DateTime |
||
| 17 | * @ORM\Column(type="datetime") |
||
| 18 | */ |
||
| 19 | protected $updatedAt; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Sets createdAt. |
||
| 23 | * |
||
| 24 | * @return $this |
||
| 25 | */ |
||
| 26 | public function setCreatedAt(\DateTime $createdAt) |
||
| 27 | { |
||
| 28 | $this->createdAt = $createdAt; |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Returns createdAt. |
||
| 35 | * |
||
| 36 | * @return \DateTime |
||
| 37 | */ |
||
| 38 | public function getCreatedAt() |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Sets updatedAt. |
||
| 45 | * |
||
| 46 | * @return $this |
||
| 47 | */ |
||
| 48 | public function setUpdatedAt(\DateTime $updatedAt) |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Returns updatedAt. |
||
| 57 | * |
||
| 58 | * @return \DateTime |
||
| 59 | */ |
||
| 60 | public function getUpdatedAt() |
||
| 65 |