Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
29 | final class Datepoint extends DateTimeImmutable |
||
30 | { |
||
31 | /** |
||
32 | * Returns a position in time expressed as a DateTimeImmutable object. |
||
33 | * |
||
34 | * A datepoint can be |
||
35 | * <ul> |
||
36 | * <li>a DateTimeInterface object |
||
37 | * <li>a integer interpreted as a timestamp |
||
38 | * <li>a string parsable by DateTime::__construct |
||
39 | * </ul> |
||
40 | * |
||
41 | * @param mixed $datepoint a position in time |
||
42 | */ |
||
43 | public static function create($datepoint): DateTimeImmutable |
||
60 |