1 | <?php |
||
17 | class Pdo extends AdapterAbstract implements AdapterInterface, AdapterFactoryInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var \PDO |
||
21 | */ |
||
22 | protected $connection; |
||
23 | |||
24 | /** |
||
25 | * Pdo constructor. |
||
26 | * |
||
27 | * @inheritdoc |
||
28 | * |
||
29 | * @throws ParserConditionNotSatisfiedException |
||
30 | */ |
||
31 | public function __construct(string $fileName) |
||
39 | |||
40 | /** |
||
41 | * @return bool |
||
42 | */ |
||
43 | protected function checkConditions() : bool |
||
47 | |||
48 | /** |
||
49 | * @return \PDO |
||
50 | * @throws ParserConfigurationException |
||
51 | */ |
||
52 | protected function getConnection() : \PDO |
||
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | * |
||
71 | * @throws ParserConfigurationException |
||
72 | * @throws ParserRuntimeException |
||
73 | */ |
||
74 | public function beginTransaction() : bool |
||
82 | |||
83 | /** |
||
84 | * @inheritdoc |
||
85 | * |
||
86 | * @throws ParserConfigurationException |
||
87 | * @throws ParserRuntimeException |
||
88 | */ |
||
89 | public function commitTransaction() : bool |
||
97 | |||
98 | /** |
||
99 | * @inheritdoc |
||
100 | * |
||
101 | * @throws ParserConfigurationException |
||
102 | * @throws ParserRuntimeException |
||
103 | */ |
||
104 | public function query(string $statement) : array |
||
112 | |||
113 | /** |
||
114 | * @inheritdoc |
||
115 | * |
||
116 | * @throws ParserConfigurationException |
||
117 | * @throws ParserRuntimeException |
||
118 | */ |
||
119 | public function prepare(string $statement) : PreparedStatementInterface |
||
128 | |||
129 | /** |
||
130 | * @inheritdoc |
||
131 | * |
||
132 | * @throws ParserConfigurationException |
||
133 | * @throws ParserRuntimeException |
||
134 | */ |
||
135 | public function exec(string $statement) : bool |
||
143 | |||
144 | public function __destruct() |
||
148 | } |
||
149 |