| 1 | <?php |
||
| 10 | trait DateTimeFormatter |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Returns a DateTime object from a date string. |
||
| 14 | * |
||
| 15 | * @param string |
||
| 16 | * @return DateTime |
||
| 17 | */ |
||
| 18 | public function toDateTime($datestr) |
||
| 22 | /** |
||
| 23 | * Returns an ImmutableDateTime object from a date string. |
||
| 24 | * |
||
| 25 | * @param string |
||
| 26 | * @return DateTimeImmutable |
||
| 27 | */ |
||
| 28 | public function toDateTimeImmutable($datestr) |
||
| 32 | } |
||
| 33 |