1 | <?php |
||
9 | class MysqliConnection implements ConnectionInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var MysqliAdapter |
||
13 | */ |
||
14 | protected $adapter; |
||
15 | |||
16 | /** |
||
17 | * @var \mysqli |
||
18 | */ |
||
19 | protected $resource; |
||
20 | |||
21 | /** |
||
22 | * @param MysqliAdapter $adapter |
||
23 | * @param \mysqli $resource |
||
24 | */ |
||
25 | 13 | public function __construct(MysqliAdapter $adapter, mysqli $resource) |
|
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | * |
||
34 | * @return \mysqli |
||
35 | */ |
||
36 | 2 | public function getResource() |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 1 | public function getHost() |
|
50 | |||
51 | /** |
||
52 | * Return current schema/database name. |
||
53 | * |
||
54 | * @throws Exception\RuntimeException |
||
55 | * |
||
56 | * @return string|false |
||
57 | */ |
||
58 | 3 | public function getCurrentSchema() |
|
72 | } |
||
73 |