Completed
Pull Request — master (#177)
by olivier
15:57
created

VotableItem::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
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 Doctrine\Common\Collections\ArrayCollection;
7
8
/**
9
 * Contains the item to vote on.
10
 *
11
 * @author  Olivier Soulet <[email protected]>
12
 * @license http://opensource.org/licenses/MIT The MIT License (MIT)
13
 */
14
class VotableItem
15
{
16
    /** @var int */
17
    private $id;
18
19
    /** @var BadgeCompletionInterface */
20
    private $badgeCompletion;
21
22
    /** @var Bool */
23
    private $pending = true;
24
25
    /** @var ArrayCollection */
26
    private $votes;
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * @return BadgeCompletionInterface
38
     */
39
    public function getBadgeCompletion()
40
    {
41
        return $this->badgeCompletion;
42
    }
43
44
    /**
45
     * @param BadgeCompletionInterface $badgeCompletion
46
     */
47
    public function setBadgeCompletion($badgeCompletion)
48
    {
49
        $this->badgeCompletion = $badgeCompletion;
50
    }
51
52
    /**
53
     * @return bool
54
     */
55
    public function isPending()
56
    {
57
        return $this->pending;
58
    }
59
60
    /**
61
     * @param bool $pending
62
     */
63
    public function setPending($pending)
64
    {
65
        $this->pending = $pending;
66
    }
67
68
    /**
69
     * @return ArrayCollection
70
     */
71
    public function getVotes()
72
    {
73
        return $this->votes;
74
    }
75
76
    /**
77
     * @param ArrayCollection $votes
78
     */
79
    public function setVotes($votes)
80
    {
81
        $this->votes = $votes;
82
    }
83
}
84