Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
70 | public function query(string $query, string $parse = null) |
||
71 | { |
||
72 | if ($parse){ |
||
73 | parse_str($parse, $this->statement); |
||
74 | |||
75 | } |
||
76 | |||
77 | $this->query = $query; |
||
78 | $this->read = DB::connect()->prepare($this->query); |
||
79 | $this->read->execute($this->statement); |
||
80 | $this->result = $this->read->fetchAll(\PDO::FETCH_OBJ); |
||
81 | |||
129 | } |