GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push β€” master ( 84095f...f577ba )
by cao
04:35
created

DBException::getSql()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: caoyangmin
5
 * Date: 2018/7/6
6
 * Time: 上午11:29
7
 */
8
9
namespace PhpBoot\DB\Exceptions;
10
11
12
use PhpBoot\DB\Context;
13
use Throwable;
14
15
class DBException extends \RuntimeException
16
{
17
    /**
18
     * @var string
19
     */
20
    private $sql;
21
    /**
22
     * @var array
23
     */
24
    private $params;
25
26
    public function __construct(Context $context, $message = "", $code = 0, Throwable $previous = null)
27
    {
28
        parent::__construct($message, $code, $previous);
29
        $this->sql = $context->sql;
30
        $this->params = $context->params;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getSql()
37
    {
38
        return $this->sql;
39
    }
40
41
    /**
42
     * @return array
43
     */
44
    public function getParams()
45
    {
46
        return $this->params;
47
    }
48
}