Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class General extends Base implements GeneralInterface |
||
18 | { |
||
19 | /** |
||
20 | * @inheritDoc |
||
21 | */ |
||
22 | protected function getLocalPath($configPath) |
||
23 | { |
||
24 | return self::XML_BASE_PATH . DIRECTORY_SEPARATOR . self::XML_GROUP_PATH . DIRECTORY_SEPARATOR . $configPath; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @inheritDoc |
||
29 | */ |
||
30 | public function isEnabled($storeId = null): bool |
||
31 | { |
||
32 | return (bool)$this->getConfig($this->getLocalPath(self::ENABLED_FIELD), $storeId); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @inheritDoc |
||
37 | */ |
||
38 | public function isProductionEnvironment($storeId = null): bool |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | public function inDebugMode($storeId = null):bool |
||
49 | } |
||
50 | } |
||
51 |