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 ( df8c18...6eb035 )
by Théo
70:05 queued 35:07
created

Product   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 7
lcom 1
cbo 0
dl 0
loc 67
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getBrand() 0 4 1
A getDescription() 0 4 1
A getId() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getPrice() 0 4 1
A setPrice() 0 4 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\ORM\Mapping as ORM;
15
16
/**
17
 * @ORM\Entity
18
 */
19
class Product
20
{
21
    /**
22
     * @ORM\Column(type="integer")
23
     * @ORM\Id
24
     * @ORM\GeneratedValue(strategy="AUTO")
25
     */
26
    protected $id;
27
28
    /**
29
     * @ORM\Column(type="string", length=100)
30
     */
31
    protected $name;
32
33
    /**
34
     * @ORM\Column(type="decimal", scale=2)
35
     */
36
    protected $price;
37
38
    /**
39
     * @ORM\Column(type="text")
40
     */
41
    protected $description;
42
43
    /**
44
     * @var Brand
45
     *
46
     * @ORM\ManyToOne(targetEntity="Brand", inversedBy="products")
47
     * @ORM\JoinColumn(name="brand_id", referencedColumnName="id")
48
     */
49
    protected $brand;
50
51
    public function getBrand(): Brand
52
    {
53
        return $this->brand;
54
    }
55
56
    public function getDescription(): string
57
    {
58
        return $this->description;
59
    }
60
61
    public function getId(): int
62
    {
63
        return $this->id;
64
    }
65
66
    public function getName(): string
67
    {
68
        return $this->name;
69
    }
70
71
    public function setName(string $name)
72
    {
73
        return $this->name = $name;
74
    }
75
76
    public function getPrice(): float
77
    {
78
        return $this->price;
79
    }
80
81
    public function setPrice(float $price)
82
    {
83
        $this->price = $price;
84
    }
85
}
86