1 | <?php namespace Magestead\Helper; |
||
9 | class Config |
||
10 | { |
||
11 | protected $_config; |
||
12 | |||
13 | protected $_projectPath; |
||
14 | |||
15 | /** |
||
16 | * @var OutputInterface |
||
17 | */ |
||
18 | private $output; |
||
19 | |||
20 | /** |
||
21 | * Config constructor. |
||
22 | * @param OutputInterface $output |
||
23 | */ |
||
24 | public function __construct(OutputInterface $output) |
||
29 | |||
30 | /** |
||
31 | * @param $name |
||
32 | * @return mixed |
||
33 | */ |
||
34 | function __get($name) |
||
39 | |||
40 | /** |
||
41 | * @param OutputInterface $output |
||
42 | * @return bool|mixed |
||
43 | */ |
||
44 | protected function getConfigFile(OutputInterface $output) |
||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | * @throws MissingConfigFileException |
||
59 | */ |
||
60 | protected function readConfigFile() |
||
68 | |||
69 | /** |
||
70 | * Find the composer home directory on non Mac environments (experimental) |
||
71 | * |
||
72 | * @return string |
||
73 | * @throws MissingComposerHomeException |
||
74 | */ |
||
75 | public function getComposerHomeDir() |
||
85 | } |
||
86 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.