1 | <?php |
||
8 | abstract class AbstractConfigCommand extends AbstractMagentoCommand |
||
9 | { |
||
10 | /** |
||
11 | * \Magento\Framework\App\Config\Storage\WriterInterface |
||
12 | */ |
||
13 | private $configWriter; |
||
14 | |||
15 | /** |
||
16 | * @var \Magento\Framework\App\Config\ScopePoolInterface |
||
17 | */ |
||
18 | protected $_scopePool; |
||
19 | |||
20 | /** |
||
21 | * @return \Magento\Framework\Encryption\EncryptorInterface |
||
22 | */ |
||
23 | protected function getEncryptionModel() |
||
27 | |||
28 | /** |
||
29 | * @return \Magento\Framework\App\Config |
||
30 | */ |
||
31 | protected function _getConfigModel() |
||
35 | |||
36 | /** |
||
37 | * @return \Magento\Framework\App\Config\ScopePoolInterface |
||
38 | */ |
||
39 | protected function getScopePool() |
||
47 | |||
48 | /** |
||
49 | * @param string $scope |
||
50 | * @return \Magento\Framework\App\Config\Data |
||
51 | */ |
||
52 | protected function getScope($scope) |
||
56 | |||
57 | /** |
||
58 | * @return \Magento\Framework\App\Config\Storage\WriterInterface |
||
59 | */ |
||
60 | protected function getConfigWriter() |
||
70 | |||
71 | /** |
||
72 | * @param string $value |
||
73 | * @param string $encryptionType |
||
74 | * @return string |
||
75 | */ |
||
76 | protected function _formatValue($value, $encryptionType) |
||
86 | |||
87 | /** |
||
88 | * @param string $scope |
||
89 | */ |
||
90 | protected function _validateScopeParam($scope) |
||
98 | |||
99 | /** |
||
100 | * @param string $scope |
||
101 | * @param string $scopeId |
||
102 | * |
||
103 | * @return string |
||
104 | */ |
||
105 | protected function _convertScopeIdParam($scope, $scopeId) |
||
131 | } |
||
132 |
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: