Passed
Push — develop ( 4a5a66...90be87 )
by BENARD
04:36
created

RankPointBadgeTrait::getRankBadge()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Traits\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait RankPointBadgeTrait
8
{
9
    /**
10
     * @ORM\Column(name="rankBadge", type="integer", nullable=false, options={"default" : 0})
11
     */
12
    private int $rankBadge = 0;
13
14
    /**
15
     * @ORM\Column(name="pointBadge", type="integer", nullable=false, options={"default" : 0})
16
     */
17
    private int $pointBadge = 0;
18
19
    /**
20
     * @param int $rankBadge
21
     * @return $this
22
     */
23
    public function setRankBadge(int $rankBadge): static
24
    {
25
        $this->rankBadge = $rankBadge;
26
        return $this;
27
    }
28
29
    /**
30
     * Get rankBadge
31
     * @return int
32
     */
33
    public function getRankBadge(): int
34
    {
35
        return $this->rankBadge;
36
    }
37
38
    /**
39
     * @param int $pointBadge
40
     * @return $this
41
     */
42
    public function setpointBadge(int $pointBadge): static
43
    {
44
        $this->pointBadge = $pointBadge;
45
        return $this;
46
    }
47
48
    /**
49
     * Get pointBadge
50
     * @return integer
51
     */
52
    public function getPointBadge(): int
53
    {
54
        return $this->pointBadge;
55
    }
56
}
57
58