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

RankPointGameTrait::setRankPointGame()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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