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.

Area   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 99
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 99
ccs 0
cts 36
cp 0
rs 10
c 0
b 0
f 0

8 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 isActive() 0 4 1
A setActive() 0 6 1
A getCountries() 0 4 1
A setCountries() 0 6 1
1
<?php
2
/**
3
 * Neta\Shopware\SDK\Entity.
4
 *
5
 * Copyright 2016 LeadCommerce
6
 *
7
 * @author    Alexander Mahrt <[email protected]>
8
 * @copyright 2016 LeadCommerce <[email protected]>
9
 */
10
11
namespace Neta\Shopware\SDK\Entity;
12
13
/**
14
 * Class Area.
15
 */
16
class Area extends Base
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var string
24
     */
25
    protected $name;
26
    /**
27
     * @var bool
28
     */
29
    protected $active;
30
    /**
31
     * @var Country[]
32
     */
33
    protected $countries;
34
35
    /**
36
     * @return int
37
     */
38
    public function getId()
39
    {
40
        return $this->id;
41
    }
42
43
    /**
44
     * @param int $id
45
     *
46
     * @return Area
47
     */
48
    public function setId($id)
49
    {
50
        $this->id = $id;
51
52
        return $this;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getName()
59
    {
60
        return $this->name;
61
    }
62
63
    /**
64
     * @param string $name
65
     *
66
     * @return Area
67
     */
68
    public function setName($name)
69
    {
70
        $this->name = $name;
71
72
        return $this;
73
    }
74
75
    /**
76
     * @return bool
77
     */
78
    public function isActive()
79
    {
80
        return $this->active;
81
    }
82
83
    /**
84
     * @param bool $active
85
     *
86
     * @return Area
87
     */
88
    public function setActive($active)
89
    {
90
        $this->active = $active;
91
92
        return $this;
93
    }
94
95
    /**
96
     * @return Country[]
97
     */
98
    public function getCountries()
99
    {
100
        return $this->countries;
101
    }
102
103
    /**
104
     * @param Country[] $countries
105
     *
106
     * @return Area
107
     */
108
    public function setCountries($countries)
109
    {
110
        $this->countries = $countries;
111
112
        return $this;
113
    }
114
}
115