Completed
Branch v1.x-dev (5c2708)
by Benjamin
04:14
created

DeadAndFireTrait::setDead()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Obblm\Core\Entity\Traits;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait DeadAndFireTrait
8
{
9
    /**
10
     * @ORM\Column(type="boolean")
11
     */
12
    private $dead = false;
13
14
    /**
15
     * @ORM\Column(type="boolean")
16
     */
17
    private $fired = false;
18
19
    public function getDead(): ?bool
20
    {
21
        return $this->dead;
22
    }
23
24
    public function isDead(): ?bool
25
    {
26
        return $this->dead;
27
    }
28
29
    public function setDead(bool $dead): self
30
    {
31
        $this->dead = $dead;
32
33
        return $this;
34
    }
35
36
    public function getFire(): ?bool
37
    {
38
        return $this->fired;
39
    }
40
41
    public function isFired(): ?bool
42
    {
43
        return $this->fired;
44
    }
45
46
    public function setFired(bool $fired): self
47
    {
48
        $this->fired = $fired;
49
50
        return $this;
51
    }
52
}
53