Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
4 | class Query extends DatabaseItem |
||
5 | { |
||
6 | private $results; |
||
7 | private $query; |
||
8 | private $bindData; |
||
9 | |||
10 | public function __construct($query, $bindData = array()) |
||
11 | { |
||
12 | $this->query = $query; |
||
13 | $this->bindData = $bindData; |
||
14 | } |
||
15 | |||
16 | #[\Override] |
||
17 | public function init() |
||
18 | { |
||
19 | $this->results = $this->getDriver()->executeQuery( |
||
|
|||
20 | array( |
||
21 | 'query' => $this->query, |
||
22 | 'bind' => $this->bindData |
||
23 | ) |
||
24 | ); |
||
25 | } |
||
26 | |||
27 | #[\Override] |
||
31 | } |
||
32 | |||
33 | public function reverse($query, $bindData = array()) |
||
40 | } |
||
41 | } |
||
42 |