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