| 1 | <?php |
||
| 19 | class PDOConnection implements ConnectionInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var \PDO $wrappedConnection |
||
| 23 | */ |
||
| 24 | private $wrappedConnection; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param \PDO $connection |
||
| 28 | */ |
||
| 29 | 2 | public function __construct(\PDO $connection) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | 1 | public function query($SQL) |
|
| 38 | { |
||
| 39 | 1 | $stmt = $this->wrappedConnection->query($SQL); |
|
| 40 | |||
| 41 | 1 | return new PDOStatement($stmt); |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritdoc |
||
| 46 | */ |
||
| 47 | 1 | public function prepare($SQL) |
|
| 53 | } |