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