Total Complexity | 2 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class SystemClock implements ClockInterface |
||
11 | { |
||
12 | private Clock $clock; |
||
13 | |||
14 | public function __construct(DateTimeImmutableFactory $factory) |
||
15 | { |
||
16 | $this->clock = new Clock($factory, date_default_timezone_get()); |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @throws \Exception |
||
21 | */ |
||
22 | public function now(): \DateTimeImmutable |
||
25 | } |
||
26 | } |
||
27 |