Implemented entities for new RoomCategory BedType system.

This commit is contained in:
2024-09-10 18:08:40 +02:00
parent 09f384fce0
commit 975d0495a8
12 changed files with 469 additions and 57 deletions
+50
View File
@@ -0,0 +1,50 @@
<?php
namespace App\Entity;
use App\Repository\BedTypeRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: BedTypeRepository::class)]
class BedType
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $name = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $iconUrl = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getIconUrl(): ?string
{
return $this->iconUrl;
}
public function setIconUrl(?string $iconUrl): static
{
$this->iconUrl = $iconUrl;
return $this;
}
}