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.

Source   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 57
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 4 1
A setId() 0 5 1
A getName() 0 4 1
A setName() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: wechsler
5
 * Date: 25/02/2017
6
 * Time: 18:18
7
 */
8
9
namespace Phase\TakeATicket\Model;
10
11
class Source
12
{
13
    /**
14
     * @var int
15
     */
16
    protected $id;
17
18
    /**
19
     * @var string
20
     */
21
    protected $name;
22
23
    /**
24
     * Source constructor.
25
     * @param string $name
26
     */
27
    public function __construct($name = null)
28
    {
29
        $this->name = $name;
30
    }
31
32
    /**
33
     * @return int
34
     */
35
    public function getId()
36
    {
37
        return $this->id;
38
    }
39
40
    /**
41
     * @param int $id
42
     * @return Source
43
     */
44
    public function setId($id)
45
    {
46
        $this->id = $id;
47
        return $this;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getName()
54
    {
55
        return $this->name;
56
    }
57
58
    /**
59
     * @param string $name
60
     * @return Source
61
     */
62
    public function setName($name)
63
    {
64
        $this->name = $name;
65
        return $this;
66
    }
67
}
68