| 1 | <?php |
||
| 22 | trait LoggedAtProperty |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * The date and time at which the user was logged. |
||
| 26 | * |
||
| 27 | * @var DateTime |
||
| 28 | */ |
||
| 29 | private $logged_at; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns the date and time at which the user was logged. |
||
| 33 | * |
||
| 34 | * @return DateTime |
||
| 35 | */ |
||
| 36 | protected function get_logged_at() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Sets the date and time at which the user was logged. |
||
| 43 | * |
||
| 44 | * @param \DateTime|string|null $datetime |
||
| 45 | */ |
||
| 46 | protected function set_logged_at($datetime) |
||
| 50 | } |
||
| 51 |