Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php namespace AgelxNash\Modx\Evo\Database\Exceptions; |
||
5 | class QueryException extends Exception |
||
6 | { |
||
7 | protected $query = ''; |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | protected $code; |
||
12 | |||
13 | 4 | public function __construct($message = "", $code = 0, Throwable $previous = null) |
|
14 | { |
||
15 | 4 | parent::__construct($message, (int)$code, $previous); |
|
16 | |||
17 | 4 | $this->code = $code; |
|
18 | 4 | } |
|
19 | |||
20 | 4 | public function setQuery($query) : self |
|
25 | } |
||
26 | |||
27 | 2 | public function getQuery() : string |
|
32 |