| 1 | <?php |
||
| 7 | class File implements FileInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private $path; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | private $content; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * File constructor. |
||
| 21 | * @param string $path |
||
| 22 | * @param string $content |
||
| 23 | */ |
||
| 24 | public function __construct(string $path, string $content = '') |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @inheritDoc |
||
| 32 | */ |
||
| 33 | public function getPath(): string |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritDoc |
||
| 40 | */ |
||
| 41 | public function getRawContent(): string |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @inheritDoc |
||
| 48 | */ |
||
| 49 | public function setRawContent(string $content) |
||
| 53 | |||
| 54 | public function __toString() |
||
| 58 | } |
||
| 59 |