| 1 | <?php |
||
| 13 | class InstanceHelper |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \Rougin\Wildfire\Wildfire |
||
| 17 | */ |
||
| 18 | protected static $wildfire; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Factory method to create Wildfire instance. |
||
| 22 | * |
||
| 23 | * @param \CI_DB_query_builder|null $database |
||
| 24 | * @param \CI_DB_result|null $query |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | 36 | public static function create($database = null, $query = null) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Returns the Wildfire instance. |
||
| 36 | * |
||
| 37 | * @return \Rougin\Wildfire\Wildfire |
||
| 38 | */ |
||
| 39 | 18 | public static function get() |
|
| 47 | } |
||
| 48 |