Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
107 | public function query(string $query, string $parse = null) |
||
108 | { |
||
109 | if ($parse) { |
||
110 | parse_str($parse, $this->statement); |
||
111 | |||
112 | } |
||
113 | |||
114 | $this->query = $query; |
||
115 | $this->read = DB::connect()->prepare($this->query); |
||
116 | $this->read->execute($this->statement); |
||
117 | $this->rows = $this->read->rowCount(); |
||
118 | $this->result = $this->read->fetchAll(\PDO::FETCH_OBJ); |
||
119 | return $this; |
||
120 | |||
180 | } |