Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
9 | final class TimeZoneAwareClock implements Clock |
||
10 | { |
||
11 | private $timeZone; |
||
12 | |||
13 | public function __construct(DateTimeZone $timeZone) |
||
14 | { |
||
15 | $this->timeZone = $timeZone; |
||
16 | } |
||
17 | |||
18 | public static function in(DateTimeZone $timeZone): self |
||
21 | } |
||
22 | |||
23 | public function now(): DateTimeInterface |
||
28 |