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.
Passed
Push — master ( fd5ec3...0fd339 )
by Pedro
02:41
created

Constrant::populate()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 1 Features 0
Metric Value
c 4
b 1
f 0
dl 0
loc 13
rs 9.4285
cc 2
eloc 7
nc 2
nop 1
1
<?php
2
3
namespace Classes\Db;
4
5
/**
6
 * constrants do banco de dados
7
 * -foreingkey
8
 * -primarykey
9
 * -unique
10
 *
11
 * @author Pedro Alarcao <[email protected]>
12
 * @link   https://github.com/pedro151/ORM-Generator
13
 */
14
class Constrant
15
{
16
    /**
17
     * constrants do banco de dados
18
     * -foreingkey
19
     * -primarykey
20
     * -unique
21
     *
22
     * @author Pedro Alarcao <[email protected]>
23
     */
24
    final private function __construct ()
25
    {
26
    }
27
28
    public static function getInstance ()
29
    {
30
        return new self();
31
    }
32
33
    /**
34
     * @var string
35
     */
36
    protected $constrant;
37
38
    /**
39
     * @var string
40
     */
41
    protected $schema;
42
43
    /**
44
     * @var string
45
     */
46
    protected $table;
47
48
    /**
49
     * @var string
50
     */
51
    protected $column;
52
53
    /**
54
     * @param $array
55
     *
56
     * @return Constrant
57
     */
58
    public function populate ( $array )
59
    {
60
        if ( isset( $array[ 'schema' ] ) )
61
        {
62
            $this->schema = $array[ 'schema' ];
63
        }
64
65
        $this->constrant = $array[ 'constrant' ];
66
        $this->table = $array[ 'table' ];
67
        $this->column = $array[ 'column' ];
68
69
        return $this;
70
    }
71
72
    public function getDatabase (){ }
73
74
    /**
75
     * @return string
76
     */
77
    public function getNameConstrant ()
78
    {
79
        return $this->constrant;
80
    }
81
82
    public function hasSchema ()
83
    {
84
        return (bool) $this->schema;
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getSchema ()
91
    {
92
        return $this->schema;
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getTable ()
99
    {
100
        return $this->table;
101
    }
102
103
    /**
104
     * @return string
105
     */
106
    public function getColumn ()
107
    {
108
        return $this->column;
109
    }
110
111
}
112