Location::getDetails()   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\LocationRepository;
6
use Doctrine\Common\Collections\ArrayCollection;
7
use Doctrine\Common\Collections\Collection;
8
use Doctrine\DBAL\Types\Types;
9
use Doctrine\ORM\Mapping as ORM;
10
11
#[ORM\Entity(repositoryClass: LocationRepository::class)]
12
class Location
13
{
14
    #[ORM\Id]
15
    #[ORM\GeneratedValue(strategy: "NONE")]
16
    #[ORM\Column]
17
    private $id;
18
19
    #[ORM\Column(length: 255)]
20
    private ?string $name = null;
21
22
    #[ORM\Column(type: Types::TEXT)]
23
    private ?string $description = null;
24
25
    #[ORM\Column(type: Types::TEXT)]
26
    private ?string $details = null;
27
28 3
    public function getId(): ?int
29
    {
30 3
        return $this->id;
31
    }
32
33 2
    public function setId(int $id)
34
    {
35 2
        $this->id = $id;
36
    }
37
38 3
    public function getName(): ?string
39
    {
40 3
        return $this->name;
41
    }
42
43 2
    public function setName(string $name): self
44
    {
45 2
        $this->name = $name;
46
47 2
        return $this;
48
    }
49
50 3
    public function getDescription(): ?string
51
    {
52 3
        return $this->description;
53
    }
54
55 2
    public function setDescription(string $description): self
56
    {
57 2
        $this->description = $description;
58
59 2
        return $this;
60
    }
61
62 3
    public function getDetails(): ?string
63
    {
64 3
        return $this->details;
65
    }
66
67 2
    public function setDetails(string $details): self
68
    {
69 2
        $this->details = $details;
70
71 2
        return $this;
72
    }
73
}
74