1 | <?php |
||
21 | class Builder |
||
22 | { |
||
23 | /** |
||
24 | * @var string path to output assembled configs |
||
25 | */ |
||
26 | protected $outputDir; |
||
27 | |||
28 | /** |
||
29 | * @var array files to process: config name => list of files |
||
30 | */ |
||
31 | protected $files = []; |
||
32 | |||
33 | /** |
||
34 | * @var array collected variables |
||
35 | */ |
||
36 | protected $vars = []; |
||
37 | |||
38 | const BASE_DIR_SAMPLE = '<base-dir>'; |
||
39 | const FILES_FILENAME = '__files'; |
||
40 | |||
41 | public function __construct($outputDir, array $files = []) |
||
46 | |||
47 | public function loadFiles() |
||
51 | |||
52 | public function saveFiles() |
||
56 | |||
57 | public function buildConfigs($files = null) |
||
70 | |||
71 | /** |
||
72 | * Merges given configs and writes at given name. |
||
73 | * @param mixed $name |
||
74 | * @param array $configs |
||
75 | */ |
||
76 | public function buildConfig($name, array $configs) |
||
86 | |||
87 | protected function isSpecialConfig($name) |
||
91 | |||
92 | /** |
||
93 | * Writes config file by name. |
||
94 | * @param string $name |
||
95 | * @param array $data |
||
96 | */ |
||
97 | public function writeConfig($name, array $data) |
||
101 | |||
102 | public function getOutputPath($name) |
||
106 | |||
107 | /** |
||
108 | * Writes config file by full path. |
||
109 | * @param string $path |
||
110 | * @param array $data |
||
111 | */ |
||
112 | public static function writeFile($path, array $data) |
||
120 | |||
121 | /** |
||
122 | * Reads config file. |
||
123 | * @param string $__path |
||
124 | * @return array configuration read from file |
||
125 | */ |
||
126 | public function readFile($__path) |
||
146 | |||
147 | /** |
||
148 | * @var IOInterface |
||
149 | */ |
||
150 | protected $io; |
||
151 | |||
152 | public function setIo(IOInterface $io) |
||
156 | |||
157 | protected function writeError($text) |
||
165 | |||
166 | } |
||
167 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.