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

RankPointGameTrait   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setPointGame() 0 4 1
A setRankPointGame() 0 4 1
A getRankPointGame() 0 3 1
A getPointGame() 0 3 1
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Traits\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait RankPointGameTrait
8
{
9
    /**
10
     * @ORM\Column(name="rankPointGame", type="integer", nullable=false, options={"default" : 0})
11
     */
12
    private int $rankPointGame = 0;
13
14
    /**
15
     * @ORM\Column(name="pointGame", type="integer", nullable=false, options={"default" : 0})
16
     */
17
    private int $pointGame = 0;
18
19
    /**
20
     * @param int $rankPointGame
21
     * @return $this
22
     */
23
    public function setRankPointGame(int $rankPointGame): static
24
    {
25
        $this->rankPointGame = $rankPointGame;
26
        return $this;
27
    }
28
29
    /**
30
     * Get rankPointGame
31
     * @return int
32
     */
33
    public function getRankPointGame(): int
34
    {
35
        return $this->rankPointGame;
36
    }
37
38
39
    /**
40
     * @param int $pointGame
41
     * @return $this
42
     */
43
    public function setPointGame(int $pointGame): static
44
    {
45
        $this->pointGame = $pointGame;
46
        return $this;
47
    }
48
49
    /**
50
     * Get pointGame
51
     * @return integer
52
     */
53
    public function getPointGame(): int
54
    {
55
        return $this->pointGame;
56
    }
57
}
58