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

DeadAndFireTrait   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
eloc 11
c 1
b 0
f 0
dl 0
loc 44
ccs 0
cts 14
cp 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getDead() 0 3 1
A isFired() 0 3 1
A getFire() 0 3 1
A setDead() 0 5 1
A isDead() 0 3 1
A setFired() 0 5 1
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