1 | <?php |
||
10 | class MysqliAdapter implements AdapterInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * |
||
15 | * @var \mysqli |
||
16 | */ |
||
17 | protected $resource; |
||
18 | |||
19 | /** |
||
20 | * |
||
21 | * @var MysqliConnection |
||
22 | */ |
||
23 | protected $connection; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Constructor |
||
28 | * |
||
29 | * @param mysqli $resource |
||
30 | */ |
||
31 | 12 | public function __construct(mysqli $resource) |
|
36 | |||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 2 | public function quoteValue($value) |
|
45 | |||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 7 | public function query($query) |
|
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | * @return MysqlConnection |
||
81 | */ |
||
82 | 5 | public function getConnection() |
|
86 | } |
||
87 |