| Total Complexity | 7 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | final class Datepoint |
||
| 36 | { |
||
| 37 | /** |
||
| 38 | * @codeCoverageIgnore |
||
| 39 | */ |
||
| 40 | private function __construct() |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns a position in time expressed as a DateTimeImmutable object. |
||
| 46 | * |
||
| 47 | * A datepoint can be |
||
| 48 | * <ul> |
||
| 49 | * <li>a DateTimeInterface object |
||
| 50 | * <li>a integer interpreted as a timestamp |
||
| 51 | * <li>a string parsable by DateTime::__construct |
||
| 52 | * </ul> |
||
| 53 | * |
||
| 54 | * @param mixed $datepoint a position in time |
||
| 55 | */ |
||
| 56 | public static function create($datepoint): DateTimeImmutable |
||
| 80 |