Completed
Pull Request — develop (#20)
by
unknown
04:04 queued 02:05
created

Bias   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 69
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 6
c 1
b 0
f 1
lcom 0
cbo 0
dl 69
loc 69
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 4 4 1
A setName() 5 5 1
A getContent() 4 4 1
A setContent() 5 5 1
A getStrength() 4 4 1
A setStrength() 5 5 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
namespace GroupByInc\API\Model;
4
5 View Code Duplication
class Bias
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...
6
{
7
8
    /** @var string */
9
    private $name;
10
11
    /** @var string */
12
    private $content;
13
14
    /** @var string */
15
    private $strength;
16
17
    /**
18
     * @return string
19
     */
20
    public function getName()
21
    {
22
        return $this->name;
23
    }
24
25
    /**
26
     * @param string $name
27
     *
28
     * @return Bias
29
     */
30
    public function setName($name)
31
    {
32
        $this->name = $name;
33
        return $this;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getContent()
40
    {
41
        return $this->content;
42
    }
43
44
    /**
45
     * @param string $content
46
     *
47
     * @return Bias
48
     */
49
    public function setContent($content)
50
    {
51
        $this->content = $content;
52
        return $this;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getStrength()
59
    {
60
        return $this->strength;
61
    }
62
63
    /**
64
     * @param string $strength
65
     *
66
     * @return Bias
67
     */
68
    public function setStrength($strength)
69
    {
70
        $this->strength = $strength;
71
        return $this;
72
    }
73
}
74