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.

Product   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 9
lcom 1
cbo 0
dl 0
loc 77
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getBrand() 0 4 1
A setBrand() 0 4 1
A getDescription() 0 4 1
A setDescription() 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 setBrand(Brand $brand)
57
    {
58
        $this->brand = $brand;
59
    }
60
61
    public function getDescription(): string
62
    {
63
        return $this->description;
64
    }
65
66
    public function setDescription(string $description)
67
    {
68
        $this->description = $description;
69
    }
70
71
    public function getId(): int
72
    {
73
        return $this->id;
74
    }
75
76
    public function getName(): string
77
    {
78
        return $this->name;
79
    }
80
81
    public function setName(string $name)
82
    {
83
        return $this->name = $name;
84
    }
85
86
    public function getPrice(): float
87
    {
88
        return $this->price;
89
    }
90
91
    public function setPrice(float $price)
92
    {
93
        $this->price = $price;
94
    }
95
}
96