| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class LP_Quiz_Cache |
| 5 |
* |
| 6 |
* @author tungnx |
| 7 |
* @since 4.2.0 |
| 8 |
* @version 1.0.0 |
| 9 |
*/ |
| 10 |
defined( 'ABSPATH' ) || exit(); |
| 11 |
|
| 12 |
class LP_Question_Cache extends LP_Cache { |
| 13 |
/** |
| 14 |
* @var null|LP_Question_Cache |
| 15 |
*/ |
| 16 |
protected static $instance; |
| 17 |
/** |
| 18 |
* @var string |
| 19 |
*/ |
| 20 |
protected $key_group_child = 'question'; |
| 21 |
|
| 22 |
/** |
| 23 |
* Get instance |
| 24 |
* |
| 25 |
* @return self |
| 26 |
*/ |
| 27 |
public static function instance(): self { |
| 28 |
if ( is_null( self::$instance ) ) { |
| 29 |
self::$instance = new self(); |
| 30 |
} |
| 31 |
|
| 32 |
return self::$instance; |
| 33 |
} |
| 34 |
|
| 35 |
public function __construct() { |
| 36 |
parent::__construct(); |
| 37 |
} |
| 38 |
} |
| 39 |
|