| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait Status |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @inheritDoc |
||
| 24 | */ |
||
| 25 | public function isEnabled($storeId = null): bool |
||
| 26 | { |
||
| 27 | $field = self::XML_FIELD_ENABLED; |
||
|
|
|||
| 28 | $config = $this->scopeConfig->getValue($this->getXmlGeneralPath($field), ScopeInterface::SCOPE_STORE, $storeId) ?: ''; |
||
| 29 | return (bool)$config; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritDoc |
||
| 34 | */ |
||
| 35 | public function enable($storeId = null) |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritDoc |
||
| 43 | */ |
||
| 44 | public function disable($storeId = null) |
||
| 48 | } |
||
| 49 | } |
||
| 50 |