Passed
Push — develop ( 6aacf8...6c0b7f )
by BENARD
11:52
created

IsActiveTrait::getIsActive()   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
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace VideoGamesRecords\CoreBundle\Traits\Entity;
4
5
trait IsActiveTrait
6
{
7
    /**
8
     * @ORM\Column(name="isActive", type="boolean", nullable=false, options={"default":true})
9
     */
10
    private bool $isActive = true;
11
12
    /**
13
     * Set isActive
14
     * @param bool $isActive
15
     * @return $this
16
     */
17
    public function setIsActive(bool $isActive): static
18
    {
19
        $this->isActive = $isActive;
20
21
        return $this;
22
    }
23
24
    /**
25
     * Get isActive
26
     * @return bool
27
     */
28
    public function getIsActive(): bool
29
    {
30
        return $this->isActive;
31
    }
32
}
33