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.

ModelContainer::getTable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PhpBoot\ORM;
4
5
6
use PhpBoot\Entity\EntityContainer;
7
8
class ModelContainer extends EntityContainer
9
{
10
11
    /**
12
     * @param string $table
13
     */
14 2
    public function setTable($table)
15
    {
16 2
        $this->table = $table;
17 2
    }
18
19
    /**
20
     * @return string
21
     */
22 11
    public function getTable()
23
    {
24 11
        return $this->table;
25
    }
26
27
    /**
28
     * @return string
29
     */
30 7
    public function getPK()
31
    {
32 7
        return $this->pk;
33
    }
34
35
    /**
36
     * @param string $pk
37
     */
38
    public function setPK($pk)
39
    {
40
        $this->pk = $pk;
41
    }
42
43
    /**
44
     * @var string
45
     */
46
    private $table;
47
48
    /**
49
     * @var string
50
     */
51
    private $pk = 'id';
52
}