Encartes-backend/src/Entity/Corridor.php

43 lines
718 B
PHP

<?php
namespace App\Entity;
use App\Repository\CorridorRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CorridorRepository::class)
*/
class Corridor
{
/**
* @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;
}
}