Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
18 | class DateTimeArchiver implements ArchiverInterface |
||
19 | { |
||
20 | private readonly string $rootPath; |
||
21 | |||
22 | public function __construct(string $rootPath) |
||
23 | { |
||
24 | $this->rootPath = \rtrim($rootPath, '/'); |
||
|
|||
25 | } |
||
26 | |||
27 | public function archive(\SplFileInfo $file): string |
||
38 | } |
||
39 | |||
40 | public function now(): \DateTimeInterface |
||
43 | } |
||
44 | } |
||
45 |