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.
Completed
Push — master ( 6eb035...60612c )
by Théo
242:20 queued 207:21
created

Brand::setName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the Hautelook\AliceBundle package.
5
 *
6
 * (c) Baldur Rensch <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Hautelook\AliceBundle\Functional\TestBundle\Entity;
13
14
use Doctrine\Common\Collections\ArrayCollection;
15
use Doctrine\ORM\Mapping as ORM;
16
use Prophecy\Util\StringUtil;
17
18
/**
19
 * @ORM\Entity
20
 */
21
class Brand
22
{
23
    /**
24
     * @var int
25
     *
26
     * @ORM\Column(type="integer")
27
     * @ORM\Id
28
     * @ORM\GeneratedValue(strategy="AUTO")
29
     */
30
    protected $id;
31
32
    /**
33
     * @var string
34
     *
35
     * @ORM\Column(type="string", length=100)
36
     */
37
    protected $name;
38
39
    /**
40
     * @var ArrayCollection
41
     *
42
     * @ORM\OneToMany(targetEntity="Product", mappedBy="brand")
43
     */
44
    protected $products;
45
46
    public function __construct()
47
    {
48
        $this->products = new ArrayCollection();
49
    }
50
51
    /**
52
     * @return int|null
53
     */
54
    public function getId()
55
    {
56
        return $this->id;
57
    }
58
59
    /**
60
     * @return string|null
61
     */
62
    public function getName()
63
    {
64
        return $this->name;
65
    }
66
67
    public function setName(string $name)
68
    {
69
        $this->name = $name;
70
    }
71
72
    /**
73
     * @return ArrayCollection
74
     */
75
    public function getProducts()
76
    {
77
        return $this->products;
78
    }
79
}
80