| 1 | <?php |
||
| 11 | class InstanceHelper |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var \Rougin\Credo\Credo |
||
| 15 | */ |
||
| 16 | protected static $credo; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Factory method to create Credo instance. |
||
| 20 | * |
||
| 21 | * @param \CI_DB_query_builder $database |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | 3 | public static function create($database) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Returns the Credo instance. |
||
| 33 | * |
||
| 34 | * @return \Rougin\Credo\Credo |
||
| 35 | */ |
||
| 36 | 15 | public static function get() |
|
| 44 | } |
||
| 45 |