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   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 70%

Importance

Changes 0
Metric Value
dl 0
loc 45
ccs 7
cts 10
cp 0.7
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setTable() 0 4 1
A getTable() 0 4 1
A getPK() 0 4 1
A setPK() 0 4 1
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
}