1 | <?php |
||
14 | abstract class AbstractFile |
||
15 | { |
||
16 | /** |
||
17 | * @var SplFileInfo |
||
18 | */ |
||
19 | protected $fileInfo; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $configuration = []; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $relativeSource; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | private $outputPath; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $content; |
||
40 | |||
41 | public function __construct(SplFileInfo $fileInfo, string $relativeSource) |
||
47 | |||
48 | public function setOutputPath(string $outputPath) |
||
52 | |||
53 | public function getOutputPath() : string |
||
57 | |||
58 | public function setRelativeUrl(string $relativeUrl) |
||
62 | |||
63 | public function getRelativeUrl() : string |
||
67 | |||
68 | public function getRelativeSource() : string |
||
72 | |||
73 | public function getBaseName() : string |
||
77 | |||
78 | public function getPrimaryExtension() : string |
||
87 | |||
88 | public function getExtension() : string |
||
92 | |||
93 | public function getContent() : string |
||
97 | |||
98 | public function changeContent(string $newContent) |
||
102 | |||
103 | public function setConfiguration(array $configuration) |
||
107 | |||
108 | public function getConfiguration() : array |
||
112 | |||
113 | public function getLayout() : string |
||
117 | } |
||
118 |