Conditions | 4 |
Paths | 6 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function execute(array $params = []) : array |
||
52 | { |
||
53 | foreach ($params as $paramName => $paramValue) { |
||
54 | $type = is_int($paramValue) ? \SQLITE3_INTEGER : \SQLITE3_TEXT; |
||
55 | $this->getStatement()->bindValue($paramName, $paramValue, $type); |
||
56 | } |
||
57 | $result = $this->getStatement()->execute(); |
||
58 | |||
59 | $results = []; |
||
60 | while ($row = $result->fetchArray(\SQLITE3_ASSOC)) { |
||
61 | $results[] = $row; |
||
62 | } |
||
63 | |||
64 | return $results; |
||
65 | } |
||
66 | } |
||
67 |