| Total Complexity | 8 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
|
| 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 |
|
| 65 | } |
||
| 66 | |||
| 67 | 2 | public function setDetails(string $details): self |
|
| 68 | { |
||
| 72 | } |
||
| 73 | } |
||
| 74 |