* @copyright 2021 DIGITAL RETAIL TECHNOLOGIES SL * @license https://opensource.org/licenses/MIT The MIT License * * Don't forget to prefix your containers with your own identifier * to avoid any conflicts with others containers. */ class RetailcrmSettingsItemBool extends RetailcrmSettingsItem { public function getValue() { $value = parent::getValue(); return false !== $value && 'false' !== $value; } public function getValueForUpdate() // todo to protected { $valueForUpdate = parent::getValueForUpdate(); return $valueForUpdate ? '1' : '0'; } public function getValueStored() { return '1' === parent::getValueStored(); } }