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

RankPointBadgeTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 9
dl 0
loc 48
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRankBadge() 0 3 1
A getPointBadge() 0 3 1
A setRankBadge() 0 4 1
A setpointBadge() 0 4 1
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