146 lines
2.7 KiB
PHP
146 lines
2.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Symfony\Component\Serializer\Attribute\Groups;
|
|
use Symfony\Component\Serializer\Attribute\SerializedName;
|
|
|
|
#[ORM\Entity]
|
|
class BuildingCasePosition
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
#[Groups(['building:read'])]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column]
|
|
#[Groups(['building:read'])]
|
|
private ?int $x = null;
|
|
|
|
#[ORM\Column]
|
|
#[Groups(['building:read'])]
|
|
private ?int $y = null;
|
|
|
|
#[ORM\Column]
|
|
#[Groups(['building:read'])]
|
|
private ?int $w = null;
|
|
|
|
#[ORM\Column]
|
|
#[Groups(['building:read'])]
|
|
private ?int $h = null;
|
|
|
|
#[ORM\Column(length: 255)]
|
|
#[Groups(['building:read'])]
|
|
#[SerializedName('renderOrder')]
|
|
private ?string $render_order = null;
|
|
|
|
#[ORM\ManyToOne(inversedBy: 'id_case_position')]
|
|
#[ORM\JoinColumn(nullable: false)]
|
|
private ?BuildingLayout $buildingLayout = null;
|
|
|
|
#[ORM\ManyToOne(inversedBy: 'id_case_position')]
|
|
#[ORM\JoinColumn(nullable: false)]
|
|
#[Groups(['building:read'])]
|
|
private ?BuildingCase $buildingCase = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setId(int $id): static
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getX(): ?int
|
|
{
|
|
return $this->x;
|
|
}
|
|
|
|
public function setX(int $x): static
|
|
{
|
|
$this->x = $x;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getY(): ?int
|
|
{
|
|
return $this->y;
|
|
}
|
|
|
|
public function setY(int $y): static
|
|
{
|
|
$this->y = $y;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getW(): ?int
|
|
{
|
|
return $this->w;
|
|
}
|
|
|
|
public function setW(int $w): static
|
|
{
|
|
$this->w = $w;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getH(): ?int
|
|
{
|
|
return $this->h;
|
|
}
|
|
|
|
public function setH(int $h): static
|
|
{
|
|
$this->h = $h;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getRenderOrder(): ?string
|
|
{
|
|
return $this->render_order;
|
|
}
|
|
|
|
public function setRenderOrder(string $render_order): static
|
|
{
|
|
$this->render_order = $render_order;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getBuildingLayout(): ?BuildingLayout
|
|
{
|
|
return $this->buildingLayout;
|
|
}
|
|
|
|
public function setBuildingLayout(?BuildingLayout $buildingLayout): static
|
|
{
|
|
$this->buildingLayout = $buildingLayout;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getBuildingCase(): ?BuildingCase
|
|
{
|
|
return $this->buildingCase;
|
|
}
|
|
|
|
public function setBuildingCase(?BuildingCase $buildingCase): static
|
|
{
|
|
$this->buildingCase = $buildingCase;
|
|
|
|
return $this;
|
|
}
|
|
}
|