| 1 | <?php |
||
| 13 | class Settings extends Model { |
||
| 14 | |||
| 15 | const DEFAULT_READING_SPEED = 300; |
||
| 16 | const DEFAULT_ROUNDING_UP_ENABLED = true; |
||
| 17 | |||
| 18 | const READING_SPEED_KEY = 'default_reading_speed'; |
||
| 19 | const ROUNDING_UP_ENABLED_KEY = 'rounding_up_enabled'; |
||
| 20 | |||
| 21 | const SETTINGS_CODE = 'ginopane_blogtimetoread'; |
||
| 22 | |||
| 23 | public $implement = [SettingsModel::class]; |
||
| 24 | |||
| 25 | public $settingsCode = self::SETTINGS_CODE; |
||
| 26 | |||
| 27 | public $settingsFields = 'fields.yaml'; |
||
| 28 | |||
| 29 | protected $cache = []; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return int |
||
| 33 | */ |
||
| 34 | public function readingSpeed() : int |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public function isRoundingUpEnabled(): bool |
||
| 46 | } |