| 1 | <?php |
||
| 7 | trait DateAwareTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Get a date object for a property |
||
| 11 | * |
||
| 12 | * @param string $key |
||
| 13 | * |
||
| 14 | * @return Carbon |
||
| 15 | */ |
||
| 16 | public function date($key) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get a storage-friendly date string for a property |
||
| 23 | * |
||
| 24 | * @param string $key |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | public function dateString($key) |
||
| 32 | } |
||
| 33 |