Passed
Push — develop ( b4947a...a49f28 )
by BENARD
07:01
created

IsDlcTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
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 26
rs 10

2 Methods

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