Passed
Push — develop ( 574080...0f5d99 )
by BENARD
04:30
created

NbGameTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 28
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getNbGame() 0 3 1
A setNbGame() 0 5 1
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Model\Entity;
4
5
trait NbGameTrait
6
{
7
    /**
8
     * @ORM\Column(name="nbGame", type="integer", nullable=false, options={"default" : 0})
9
     */
10
    private int $nbGame = 0;
11
12
    /**
13
     * Set nbGame
14
     *
15
     * @param integer $nbGame
16
     * @return $this
17
     */
18
    public function setNbGame(int $nbGame): static
19
    {
20
        $this->nbGame = $nbGame;
21
22
        return $this;
23
    }
24
25
    /**
26
     * Get nbGame
27
     *
28
     * @return integer
29
     */
30
    public function getNbGame(): int
31
    {
32
        return $this->nbGame;
33
    }
34
}
35