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