1 | <?php |
||
21 | class ConfigFile |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private $buffer; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $path; |
||
32 | |||
33 | /** |
||
34 | * @param string $path |
||
35 | * @return ConfigFile |
||
36 | * @throws InvalidArgumentException if $path is invalid (can't be read for whatever reason) |
||
37 | */ |
||
38 | public static function createFromFile($path) |
||
49 | |||
50 | /** |
||
51 | * @param string $path |
||
52 | */ |
||
53 | public function loadFile($path) |
||
63 | |||
64 | /** |
||
65 | * @param string $buffer |
||
66 | */ |
||
67 | public function setBuffer($buffer) |
||
71 | |||
72 | /** |
||
73 | * @param string $magentoRootFolder |
||
74 | * @param null|SplFileInfo $file [optional] |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | public function applyVariables($magentoRootFolder, SplFileInfo $file = null) |
||
87 | |||
88 | /** |
||
89 | * @throws RuntimeException |
||
90 | */ |
||
91 | public function toArray() |
||
101 | |||
102 | public function mergeArray(array $array) |
||
108 | } |
||
109 |