1 | <?php |
||
10 | class UtcDateTimeFactory |
||
11 | { |
||
12 | /** |
||
13 | * Allows for mocking of time. |
||
14 | * |
||
15 | * @var UtcDateTime|null |
||
16 | */ |
||
17 | private static $now; |
||
18 | |||
19 | /** |
||
20 | * @var LoggerInterface|null |
||
21 | */ |
||
22 | public static $logger; |
||
23 | |||
24 | /** |
||
25 | * @return UtcDateTime |
||
26 | */ |
||
27 | public static function now() |
||
31 | |||
32 | /** |
||
33 | * @param string $string A date-time string formatted using `self::FORMAT` (eg. '2014-11-26T15:20:43+01:00'). |
||
34 | * @return UtcDateTime |
||
35 | */ |
||
36 | public static function fromString($string) |
||
50 | |||
51 | /** |
||
52 | * @deprecated UTC datetimes should be enforced on input. |
||
53 | * @param CoreDateTime $dateTime |
||
54 | * @return UtcDateTime |
||
55 | */ |
||
56 | public static function createFromTimezonedUtcDateTime(CoreDateTime $dateTime) |
||
73 | } |
||
74 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.