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

NbTeamTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

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

2 Methods

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