Completed
Push — master ( da1994...a846d4 )
by Adrien
11s
created

BadgeCompletion::isPending()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Badger\Bundle\GameBundle\Entity;
4
5
use Badger\Component\Game\Model\BadgeCompletionInterface;
6
use Badger\Component\Game\Model\BadgeInterface;
7
use Badger\Component\User\Model\UserInterface;
8
9
/**
10
 * @author  Adrien Pétremann <[email protected]>
11
 * @license http://opensource.org/licenses/MIT The MIT License (MIT)
12
 */
13 View Code Duplication
class BadgeCompletion implements BadgeCompletionInterface
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...
14
{
15
    /** @var string */
16
    protected $id;
17
18
    /** @var UserInterface */
19
    protected $user;
20
21
    /** @var BadgeInterface */
22
    protected $badge;
23
24
    /** @var \DateTime */
25
    protected $completionDate;
26
27
    /** @var boolean */
28
    protected $pending;
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function getId()
34
    {
35
        return $this->id;
36
    }
37
38
    /**
39
     * {@inheritdoc}
40
     */
41
    public function setId($id)
42
    {
43
        $this->id = $id;
44
    }
45
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function getUser()
50
    {
51
        return $this->user;
52
    }
53
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function setUser($user)
58
    {
59
        $this->user = $user;
60
    }
61
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function getBadge()
66
    {
67
        return $this->badge;
68
    }
69
70
    /**
71
     * {@inheritdoc}
72
     */
73
    public function setBadge($badge)
74
    {
75
        $this->badge = $badge;
76
    }
77
78
    /**
79
     * {@inheritdoc}
80
     */
81
    public function getCompletionDate()
82
    {
83
        return $this->completionDate;
84
    }
85
86
    /**
87
     * {@inheritdoc}
88
     */
89
    public function setCompletionDate(\DateTime $completionDate)
90
    {
91
        $this->completionDate = $completionDate;
92
    }
93
94
    /**
95
     * {@inheritdoc}
96
     */
97
    public function isPending()
98
    {
99
        return $this->pending;
100
    }
101
102
    /**
103
     * {@inheritdoc}
104
     */
105
    public function setPending($pending)
106
    {
107
        $this->pending = $pending;
108
    }
109
}
110