Response::getLocationId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
namespace App\Entity\Game;
4
5
use App\Repository\Game\ResponseRepository;
6
use Doctrine\DBAL\Types\Types;
7
use Doctrine\ORM\Mapping as ORM;
8
9
#[ORM\Entity(repositoryClass: ResponseRepository::class)]
10
class Response
11
{
12
    #[ORM\Id]
13
    #[ORM\GeneratedValue(strategy: "NONE")]
14
    #[ORM\Column]
15
    private $id;
16
17
    #[ORM\Column(type: Types::INTEGER)]
18
    private ?int $actionId;
19
20
    #[ORM\Column(length: 255)]
21
    private ?string $type = null;
22
23
    #[ORM\Column]
24
    private ?int $locationId = null;
25
26
    public function getId(): ?int
27
    {
28
        return $this->id;
29
    }
30
31 1
    public function setId(int $id): self
32
    {
33 1
        $this->id = $id;
34
35 1
        return $this;
36
    }
37
38 1
    public function getActionId(): ?int
39
    {
40 1
        return $this->actionId;
41
    }
42
43 1
    public function setActionId(int $actionId): self
44
    {
45 1
        $this->actionId = $actionId;
46
47 1
        return $this;
48
    }
49
50 1
    public function getType(): ?string
51
    {
52 1
        return $this->type;
53
    }
54
55 1
    public function setType(string $type): self
56
    {
57 1
        $this->type = $type;
58
59 1
        return $this;
60
    }
61
62 1
    public function getLocationId(): ?int
63
    {
64 1
        return $this->locationId;
65
    }
66
67 1
    public function setLocationId(int $locationId): self
68
    {
69 1
        $this->locationId = $locationId;
70
71 1
        return $this;
72
    }
73
}
74