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 ( b98016...0803ae )
by Mohamed
40:16 queued 14:56
created

PropertyGroupOption   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 75
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 75
loc 75
ccs 0
cts 27
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 4 4 1
A setId() 6 6 1
A getName() 4 4 1
A setName() 6 6 1
A isFilterable() 4 4 1
A setFilterable() 6 6 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

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 PropertyGroupOption.
15
 */
16 View Code Duplication
class PropertyGroupOption extends Base
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
17
{
18
    /**
19
     * @var int
20
     */
21
    protected $id;
22
    /**
23
     * @var string
24
     */
25
    protected $name;
26
    /**
27
     * @var bool
28
     */
29
    protected $filterable;
30
31
    /**
32
     * @return int
33
     */
34
    public function getId()
35
    {
36
        return $this->id;
37
    }
38
39
    /**
40
     * @param int $id
41
     *
42
     * @return PropertyGroupOption
43
     */
44
    public function setId($id)
45
    {
46
        $this->id = $id;
47
48
        return $this;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getName()
55
    {
56
        return $this->name;
57
    }
58
59
    /**
60
     * @param string $name
61
     *
62
     * @return PropertyGroupOption
63
     */
64
    public function setName($name)
65
    {
66
        $this->name = $name;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @return bool
73
     */
74
    public function isFilterable()
75
    {
76
        return $this->filterable;
77
    }
78
79
    /**
80
     * @param bool $filterable
81
     *
82
     * @return PropertyGroupOption
83
     */
84
    public function setFilterable($filterable)
85
    {
86
        $this->filterable = $filterable;
87
88
        return $this;
89
    }
90
}
91