1 | <?php |
||
15 | trait ProvidersLoaderTrait |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @param $containerName |
||
20 | */ |
||
21 | public function loadProvidersFromContainers($containerName) |
||
27 | |||
28 | /** |
||
29 | * loadProvidersFromShip |
||
30 | */ |
||
31 | public function loadProvidersFromShip() |
||
37 | |||
38 | /** |
||
39 | * @param $directory |
||
40 | */ |
||
41 | private function loadProviders($directory) |
||
65 | |||
66 | /* |
||
67 | * loadProvider |
||
68 | */ |
||
69 | private function loadProvider($provider) |
||
73 | |||
74 | /** |
||
75 | * loadContainersInternalProviders |
||
76 | */ |
||
77 | public function loadContainersInternalProviders() |
||
83 | |||
84 | } |
||
85 |
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: