1 | <?php |
||
23 | trait CreatedAtProperty |
||
24 | { |
||
25 | /** |
||
26 | * The date and time at which the record was created. |
||
27 | * |
||
28 | * @var mixed |
||
29 | */ |
||
30 | private $created_at; |
||
31 | |||
32 | /** |
||
33 | * Returns the date and time at which the record was created. |
||
34 | * |
||
35 | * @return DateTime |
||
36 | */ |
||
37 | protected function get_created_at() |
||
41 | |||
42 | /** |
||
43 | * Sets the date and time at which the record was created. |
||
44 | * |
||
45 | * @param mixed $datetime |
||
46 | */ |
||
47 | protected function set_created_at($datetime) |
||
51 | } |
||
52 |