1 | <?php |
||
16 | class PDO |
||
17 | { |
||
18 | /** |
||
19 | * @var \PDO |
||
20 | */ |
||
21 | protected $pdo; |
||
22 | |||
23 | /** |
||
24 | * @var ProfilerInterface |
||
25 | */ |
||
26 | protected $profiler; |
||
27 | |||
28 | /** |
||
29 | * @param \PDO $pdo |
||
30 | * @param ProfilerInterface $profiler |
||
31 | */ |
||
32 | 1 | public function __construct(\PDO $pdo, ProfilerInterface $profiler) |
|
37 | |||
38 | /** |
||
39 | * @param string $name |
||
40 | * @param array $arguments |
||
41 | * @return mixed |
||
42 | */ |
||
43 | 1 | public function __call($name, array $arguments) |
|
47 | |||
48 | /** |
||
49 | * @param string $statement |
||
50 | * @return \PDOStatement |
||
51 | */ |
||
52 | 1 | public function query($statement) |
|
64 | |||
65 | /** |
||
66 | * @param string $statement |
||
67 | * @return int Number of rows affected |
||
68 | */ |
||
69 | 1 | public function exec($statement) |
|
80 | |||
81 | /** |
||
82 | * @param string $statement |
||
83 | * @param array $options |
||
84 | * @return PDOStatement|bool |
||
85 | */ |
||
86 | 2 | public function prepare($statement, $options = null) |
|
97 | |||
98 | /** |
||
99 | * @return \PDO |
||
100 | */ |
||
101 | 1 | public function getPdo() |
|
105 | |||
106 | /** |
||
107 | * @param \PDO $pdo |
||
108 | */ |
||
109 | 1 | public function setPdo(\PDO $pdo) |
|
113 | |||
114 | /** |
||
115 | * @return ProfilerInterface |
||
116 | */ |
||
117 | 1 | public function getProfiler() |
|
121 | |||
122 | /** |
||
123 | * @param ProfilerInterface $profiler |
||
124 | */ |
||
125 | 1 | public function setProfiler(ProfilerInterface $profiler) |
|
129 | } |
||
130 |