| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| 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) ? \PDO::PARAM_INT : \PDO::PARAM_STR; |
||
| 55 | $this->getStatement()->bindValue($paramName, $paramValue, $type); |
||
| 56 | } |
||
| 57 | $this->getStatement()->execute(); |
||
| 58 | |||
| 59 | return $this->getStatement()->fetchAll(\PDO::FETCH_ASSOC); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |