Total Complexity | 3 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class DB extends Capsule |
||
21 | { |
||
22 | /** |
||
23 | * The database instance. |
||
24 | * |
||
25 | * @since 1.0.0 |
||
26 | * |
||
27 | * @var \WPB\Database\DB The database instance. |
||
28 | */ |
||
29 | protected static $instance = false; |
||
30 | |||
31 | /** |
||
32 | * Return database instance. |
||
33 | * |
||
34 | * @since 1.0.0 |
||
35 | * |
||
36 | * @return null|\WPB\Database\DB |
||
37 | */ |
||
38 | public static function instance() |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * The database constructor. |
||
49 | * |
||
50 | * @since 1.0.0 |
||
51 | * |
||
52 | * @return void |
||
53 | */ |
||
54 | public function __construct() |
||
80 |