1 | <?php |
||
15 | trait ConfigsLoaderTrait |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * runConfigsAutoLoader |
||
20 | */ |
||
21 | public function runConfigsAutoLoader() |
||
26 | |||
27 | /** |
||
28 | * loadConfigsFromContainers |
||
29 | */ |
||
30 | private function loadConfigsFromContainers() |
||
36 | |||
37 | /** |
||
38 | * loadConfigsFromPort |
||
39 | */ |
||
40 | private function loadConfigsFromPort() |
||
47 | |||
48 | /** |
||
49 | * @param $directory |
||
50 | */ |
||
51 | private function loadConfigs($directory) |
||
66 | } |
||
67 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: