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 ( 804d88...9de2aa )
by t
02:26
created

PDO   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 2
1
<?php
2
/**
3
 * Class PDO
4
 *
5
 * @link https://www.icy2003.com/
6
 * @author icy2003 <[email protected]>
7
 * @copyright Copyright (c) 2017, icy2003
8
 */
9
10
namespace icy2003\php\iexts\yii2\db;
11
12
/**
13
 * POD 扩展
14
 *
15
 * 添加以 i 开头的新的dsn,用于扩展 yii2
16
 */
17
class PDO extends \PDO
18
{
19
20
    /**
21
     * 当前类名
22
     *
23
     * @return string
24
     */
25
    public static function className()
26
    {
27
        return get_called_class();
28
    }
29
30
    /**
31
     * 构造函数
32
     *
33
     * @param string $dsn
34
     * @param string $username
35
     * @param string $password
36
     * @param array $attributes
37
     */
38
    public function __construct($dsn, $username, $password, $attributes)
39
    {
40
        return parent::__construct(substr($dsn, 1), $username, $password, $attributes);
41
    }
42
}
43