Test Failed
Push — master ( 3e3a3f...bfd175 )
by
unknown
12:44
created

AttributeDummy::getFooBar()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
 * This file is part of AppBundle the package.
4
 *
5
 * (c) Ruslan Muriev <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace RonteLtd\JsonApiBundle\Tests\Fixtures;
12
13
use RonteLtd\JsonApiBundle\Annotation\Attribute;
14
15
/**
16
 * Class AttributeDummy
17
 *
18
 * @package RonteLtd\JsonApiBundle\Tests\Fixtures
19
 * @author Ruslan Muriev <[email protected]>
20
 */
21 View Code Duplication
class AttributeDummy
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...
22
{
23
    /**
24
     * @Attribute(name="a")
25
     *
26
     * @var
27
     */
28
    private $foo;
29
30
    /**
31
     * @Attribute
32
     *
33
     * @var
34
     */
35
    private $bar;
36
37
    /**
38
     * @var
39
     */
40
    private $fooBar;
41
42
    /**
43
     * @return mixed
44
     */
45
    public function getFoo()
46
    {
47
        return $this->foo;
48
    }
49
50
    /**
51
     * @param mixed $foo
52
     */
53
    public function setFoo($foo)
54
    {
55
        $this->foo = $foo;
56
    }
57
58
    /**
59
     * @return mixed
60
     */
61
    public function getBar()
62
    {
63
        return $this->bar;
64
    }
65
66
    /**
67
     * @param mixed $bar
68
     */
69
    public function setBar($bar)
70
    {
71
        $this->bar = $bar;
72
    }
73
74
    /**
75
     * @return mixed
76
     */
77
    public function getFooBar()
78
    {
79
        return $this->fooBar;
80
    }
81
82
    /**
83
     * @param mixed $fooBar
84
     */
85
    public function setFooBar($fooBar)
86
    {
87
        $this->fooBar = $fooBar;
88
    }
89
}