1 | <?php |
||
15 | class PreparedPDOStatement implements PreparedStatement |
||
16 | { |
||
17 | /** |
||
18 | * @var PDOStatement |
||
19 | */ |
||
20 | private $handle; |
||
21 | |||
22 | /** |
||
23 | * @var PDOExceptionMapper |
||
24 | */ |
||
25 | private $exception_mapper; |
||
26 | |||
27 | /** |
||
28 | * @var TypeProvider |
||
29 | */ |
||
30 | private $types; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | private $params = []; |
||
36 | |||
37 | /** |
||
38 | * @var bool |
||
39 | */ |
||
40 | private $executed = false; |
||
41 | |||
42 | /** |
||
43 | * @param PDOStatement $handle |
||
44 | * @param PDOExceptionMapper $exception_mapper |
||
45 | * @param TypeProvider $types |
||
46 | */ |
||
47 | 1 | public function __construct(PDOStatement $handle, PDOExceptionMapper $exception_mapper, TypeProvider $types) |
|
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | 1 | public function bind($name, $value) |
|
87 | |||
88 | /** |
||
89 | * @inheritdoc |
||
90 | */ |
||
91 | 1 | public function execute() |
|
104 | |||
105 | /** |
||
106 | * @inheritdoc |
||
107 | */ |
||
108 | 1 | public function fetch() |
|
122 | |||
123 | /** |
||
124 | * @inheritdoc |
||
125 | */ |
||
126 | public function getRowsAffected() |
||
130 | } |
||
131 |