| 1 | <?php |
||
| 7 | class FileSystemPath implements FileSystemPathInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $path; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * FileSystemPath constructor. |
||
| 16 | * @param string $path |
||
| 17 | */ |
||
| 18 | 1 | public function __construct(string $path) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritDoc |
||
| 25 | */ |
||
| 26 | 2 | public function rawPath(): string |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | 2 | public function pathName(): string |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritDoc |
||
| 41 | */ |
||
| 42 | 2 | public function filename(): string |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritDoc |
||
| 49 | */ |
||
| 50 | 2 | public function size(): int |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @inheritDoc |
||
| 57 | */ |
||
| 58 | 2 | public function type(): string |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @inheritDoc |
||
| 65 | */ |
||
| 66 | 2 | public function exists(): bool |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @inheritDoc |
||
| 73 | */ |
||
| 74 | 1 | public function isDirectory(): bool |
|
| 78 | } |
||
| 79 |