1 | <?php |
||
16 | class AbstractConfigCommand extends SilverStripeCommand |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $yamlConfig; |
||
22 | |||
23 | /** |
||
24 | * @var \SilverStripe\Core\Manifest\ConfigManifest |
||
25 | */ |
||
26 | protected $configManifest; |
||
27 | |||
28 | /** |
||
29 | * Gets the parsed YAML configuration array from the ConfigManifest |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | public function getYamlConfig() |
||
41 | |||
42 | /** |
||
43 | * Assemble a data-set that would be returned from ConfigStaticManifest, if it were a bit more |
||
44 | * useful for external API access. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public function getStaticConfig() |
||
67 | |||
68 | /** |
||
69 | * Gets the ConfigManifest from the current Config instance |
||
70 | * |
||
71 | * @return \SilverStripe\Core\Manifest\ConfigManifest |
||
72 | */ |
||
73 | public function getConfigManifest() |
||
81 | |||
82 | /** |
||
83 | * Gets any overrides made to the manifest |
||
84 | * |
||
85 | * @return array |
||
86 | */ |
||
87 | public function getConfigOverrides() |
||
92 | |||
93 | /** |
||
94 | * Get the SilverStripe Config model |
||
95 | * |
||
96 | * @return Config |
||
97 | */ |
||
98 | public function getConfig() |
||
102 | |||
103 | /** |
||
104 | * Gets the value of a non-public property from the given class instance |
||
105 | * |
||
106 | * @param object $class |
||
107 | * @param string $propertyName |
||
108 | * @return mixed |
||
109 | */ |
||
110 | protected function getPropertyValue($class, $propertyName) |
||
117 | } |
||
118 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..