| 1 | <?php |
||
| 5 | class FileSnapshot |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | private $filename; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * FileSnapshot constructor. |
||
| 12 | * |
||
| 13 | * @param string $filename |
||
| 14 | */ |
||
| 15 | public function __construct(string $filename) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return string |
||
| 22 | */ |
||
| 23 | public function path(): string |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function id(): string |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return int |
||
| 38 | */ |
||
| 39 | public function size(): int |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return FileTimestamp |
||
| 46 | */ |
||
| 47 | public function timestamp(): FileTimestamp |
||
| 51 | } |