Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
15 | final class TImeZoneAwareMutableClock implements Clock |
||
16 | { |
||
17 | private $timeZone; |
||
18 | |||
19 | public function __construct(DateTimeZone $timeZone) |
||
20 | { |
||
21 | $this->timeZone = $timeZone; |
||
22 | } |
||
23 | |||
24 | public static function in(DateTimeZone $timeZone): self |
||
25 | { |
||
26 | return new self($timeZone); |
||
27 | } |
||
28 | |||
29 | public function now(): DateTimeInterface |
||
32 | } |
||
33 | } |
||
34 |