1 | <?php |
||
17 | final class PostFile extends File |
||
18 | { |
||
19 | /** |
||
20 | * @var DateTimeInterface |
||
21 | */ |
||
22 | private $date; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $filenameWithoutDate; |
||
28 | |||
29 | 2 | public function __construct(SplFileInfo $fileInfo, string $relativeSource) |
|
36 | |||
37 | 1 | public function getDate() : DateTimeInterface |
|
41 | |||
42 | 1 | public function getDateInFormat(string $format) : string |
|
46 | |||
47 | 1 | public function getFilenameWithoutDate() : string |
|
51 | |||
52 | 2 | private function ensurePathStartsWithDate(SplFileInfo $fileInfo) |
|
60 | } |
||
61 |