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 | * @param $SQL |
||
36 | * |
||
37 | * @return \PDOStatement |
||
38 | */ |
||
39 | 2 | private function prepareStatement($SQL) |
|
43 | |||
44 | /** |
||
45 | * @param string $SQL |
||
46 | * @param QueryParameterInterface[] $parameters |
||
47 | * |
||
48 | * @return \PDOStatement |
||
49 | */ |
||
50 | 2 | private function getExecutedStatement($SQL, array $parameters = []) |
|
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | 1 | public function fetchScalar($SQL, array $parameters = []) |
|
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | public function fetchRow($SQL, array $parameters = []) |
||
90 | |||
91 | /** |
||
92 | * @inheritdoc |
||
93 | */ |
||
94 | 1 | public function fetchAll($SQL, array $parameters = []) |
|
104 | |||
105 | /** |
||
106 | * @inheritdoc |
||
107 | */ |
||
108 | public function rowCount($SQL, array $parameters = []) |
||
114 | } |