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

NbChartWithoutDlcTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

2 Methods

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