mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-03-18 07:01:04 +01:00
43 lines
732 B
PHP
43 lines
732 B
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\CorridorRepository;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* @ORM\Entity(repositoryClass=CorridorRepository::class)
|
|
*/
|
|
class Corridor extends Place
|
|
{
|
|
/**
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue
|
|
* @ORM\Column(type="integer")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity=Floor::class, inversedBy="corridors")
|
|
* @ORM\JoinColumn(nullable=false)
|
|
*/
|
|
private $floor;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getFloor(): ?Floor
|
|
{
|
|
return $this->floor;
|
|
}
|
|
|
|
public function setFloor(?Floor $floor): self
|
|
{
|
|
$this->floor = $floor;
|
|
|
|
return $this;
|
|
}
|
|
}
|