Total Complexity | 4 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class DateTimeZoneFactory implements DateTimeZoneFactoryInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private string $dateTimeZoneClassName; |
||
19 | |||
20 | /** |
||
21 | * @param string|null $dateTimeZoneClassName |
||
22 | * |
||
23 | * @throws DateTimeZoneFactoryException |
||
24 | */ |
||
25 | public function __construct(string $dateTimeZoneClassName = null) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param string $spec The date time zone specification |
||
41 | * |
||
42 | * @return \DateTimeZone |
||
43 | * |
||
44 | * @throws DateTimeZoneFactoryException If the \DateTimeZone cannot be created |
||
45 | */ |
||
46 | public function createDateTimeZone(string $spec): \DateTimeZone |
||
67 |