InvalidQueryException::getSQLString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Soluble\Normalist\Exception;
4
5
class InvalidQueryException extends ErrorException implements ExceptionInterface
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $sql_string;
11
12
    /**
13
     *
14
     * @return \Soluble\Normalist\Exception\InvalidQueryException
15
     */
16
    public function setSQLString($sql_string)
17
    {
18
        $this->sql_string = $sql_string;
19
        return $this;
20
    }
21
22
    /**
23
     *
24
     * @return string
25
     */
26
    public function getSQLString()
27
    {
28
        return $this->sql_string;
29
    }
30
}
31