Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace AgelxNash\Modx\Evo\Database\Exceptions; |
||
5 | class QueryException extends Exception |
||
6 | { |
||
7 | protected $query = ''; |
||
8 | |||
9 | /** |
||
10 | * @param string $message |
||
11 | * @param int|string $code |
||
12 | * @param Throwable|null $previous |
||
13 | */ |
||
14 | 5 | public function __construct($message = '', $code = 0, Throwable $previous = null) |
|
19 | 5 | } |
|
20 | |||
21 | /** |
||
22 | * @param string $query |
||
23 | * @return $this |
||
24 | */ |
||
25 | 5 | public function setQuery($query) |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return string |
||
34 | */ |
||
35 | 2 | public function getQuery() |
|
40 |