| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | trait SQLExecutor |
||
| 18 | { |
||
| 19 | use SAR, SRD; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $sql |
||
| 23 | * @param array $bind |
||
| 24 | * @return Created|Updated|Selected |
||
| 25 | */ |
||
| 26 | public function execute(string $sql, array $bind = []) |
||
| 27 | { |
||
| 28 | return $this->sarRun($this->assigned($sql), 'execute', [$sql, $bind]); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @deprecated |
||
| 33 | * @param string $data |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | public function escape(string $data) : string |
||
| 39 | } |
||
| 40 | } |
||
| 41 |