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   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 34
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getSql() 0 4 1
A getParams() 0 4 1
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
}