Passed
Branch develop (aa60bf)
by BENARD
05:22
created

RankPointGameTrait::getRankPointGame()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Model\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait RankPointGameTrait
8
{
9
    /**
10
     * @ORM\Column(name="rankPointGame", type="integer", nullable=false)
11
     */
12
    private ?int $rankPointGame = 0;
13
14
    /**
15
     * @ORM\Column(name="pointChart", type="integer", nullable=false)
16
     */
17
    private int $pointGame= 0;
18
19
    /**
20
     * @param int $rankPointGame
21
     * @return void
22
     */
23
    public function setRankPointGame(int $rankPointGame): void
24
    {
25
        $this->rankPointGame = $rankPointGame;
26
    }
27
28
    /**
29
     * Get rankPointGame
30
     * @return integer
31
     */
32
    public function getRankPointGame(): int
33
    {
34
        return $this->rankPointGame;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->rankPointGame could return the type null which is incompatible with the type-hinted return integer. Consider adding an additional type-check to rule them out.
Loading history...
35
    }
36
37
38
    /**
39
     * @param int $pointGame
40
     * @return void
41
     */
42
    public function setPointGame(int $pointGame): void
43
    {
44
        $this->pointGame = $pointGame;
45
    }
46
47
    /**
48
     * Get pointGame
49
     * @return integer
50
     */
51
    public function getPointGame(): int
52
    {
53
        return $this->pointGame;
54
    }
55
}
56