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.

ProjectDTO   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 83
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 83
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getName() 0 4 1
A setName() 0 6 1
A getProjectFiles() 0 4 1
A setProjectFiles() 0 6 1
1
<?php
2
3
namespace Ozean12\WebTranslateItBundle\DTO;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
use JMS\Serializer\Annotation as Serializer;
7
8
/**
9
 * Class ProjectDTO.
10
 */
11
class ProjectDTO
12
{
13
    /**
14
     * @var int
15
     *
16
     * @Serializer\Type("integer")
17
     */
18
    private $id;
19
20
    /**
21
     * @var string
22
     *
23
     * @Serializer\Type("string")
24
     */
25
    private $name;
26
27
    /**
28
     * @var ProjectFileDTO[]|ArrayCollection
29
     *
30
     * @Serializer\Type("ArrayCollection<Ozean12\WebTranslateItBundle\DTO\ProjectFileDTO>")
31
     */
32
    private $projectFiles;
33
34
    /**
35
     * @return int
36
     */
37
    public function getId()
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * @param int $id
44
     *
45
     * @return ProjectDTO
46
     */
47
    public function setId($id)
48
    {
49
        $this->id = $id;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getName()
58
    {
59
        return $this->name;
60
    }
61
62
    /**
63
     * @param string $name
64
     *
65
     * @return ProjectDTO
66
     */
67
    public function setName($name)
68
    {
69
        $this->name = $name;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @return ArrayCollection|ProjectFileDTO[]
76
     */
77
    public function getProjectFiles()
78
    {
79
        return $this->projectFiles;
80
    }
81
82
    /**
83
     * @param ArrayCollection|ProjectFileDTO[] $projectFiles
84
     *
85
     * @return ProjectDTO
86
     */
87
    public function setProjectFiles($projectFiles)
88
    {
89
        $this->projectFiles = $projectFiles;
90
91
        return $this;
92
    }
93
}
94