Completed
Push — master ( 227237...06988d )
by Agel_Nash
02:25
created

QueryException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setQuery() 0 5 1
A getQuery() 0 3 1
1
<?php namespace AgelxNash\Modx\Evo\Database\Exceptions;
2
3
use Exception;
4
5
class QueryException extends Exception
6
{
7
    protected $query = '';
8
9 2
    public function setQuery($query) : self
10
    {
11 2
        $this->query = $query;
12
13 2
        return $this;
14
    }
15
16 1
    public function getQuery() : string
17
    {
18 1
        return $this->query;
19
    }
20
}
21