Total Complexity | 7 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | final class NativeQuery extends AbstractQuery |
||
16 | { |
||
17 | /** @var string */ |
||
18 | private $sql; |
||
19 | |||
20 | /** |
||
21 | * Sets the SQL of the query. |
||
22 | * |
||
23 | * @param string $sql |
||
24 | * |
||
25 | * @return NativeQuery This query instance. |
||
26 | */ |
||
27 | 13 | public function setSQL($sql) |
|
28 | { |
||
29 | 13 | $this->sql = $sql; |
|
30 | |||
31 | 13 | return $this; |
|
32 | } |
||
33 | |||
34 | /** |
||
35 | * Gets the SQL query. |
||
36 | * |
||
37 | * @return mixed The built SQL query or an array of all SQL queries. |
||
38 | * |
||
39 | * @override |
||
40 | */ |
||
41 | 2 | public function getSQL() |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 14 | protected function doExecute() |
|
76 |