| 1 |
<?php |
| 2 |
/** |
| 3 |
* Our superclass responsible for storage services. |
| 4 |
* |
| 5 |
* @package ForceRefresh |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace JordanLeven\Plugins\ForceRefresh\Services; |
| 9 |
|
| 10 |
/** |
| 11 |
* Superclass for storage services. |
| 12 |
*/ |
| 13 |
abstract class Storage_Service { |
| 14 |
|
| 15 |
/** |
| 16 |
* Method for getting an option from the WordPress database. |
| 17 |
* |
| 18 |
* @param string $option_name The name of the option to get. |
| 19 |
* @param mixed $default The default value to return if the option doesn't exist. |
| 20 |
* |
| 21 |
* @return mixed The saved option |
| 22 |
*/ |
| 23 |
public static function get_option( string $option_name, $default = false ) { |
| 24 |
return get_option( $option_name, $default ); |
| 25 |
} |
| 26 |
} |
| 27 |
|