<?php
namespace App\Entity;
use App\Repository\RotationRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: RotationRepository::class)]
class Rotation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $jour = null;
#[ORM\Column(length: 255)]
private ?string $repas = null;
#[ORM\Column(length: 255)]
private ?string $semaine = null;
#[ORM\ManyToOne(inversedBy: 'rotations')]
#[ORM\JoinColumn(nullable: false)]
private ?Foodtruck $foodtruck = null;
#[ORM\ManyToOne(inversedBy: 'rotations')]
#[ORM\JoinColumn(nullable: false)]
private ?Emplacement $emplacement = null;
public function getId(): ?int
{
return $this->id;
}
public function getJour(): ?string
{
return $this->jour;
}
public function setJour(string $jour): self
{
$this->jour = $jour;
return $this;
}
public function getRepas(): ?string
{
return $this->repas;
}
public function setRepas(string $repas): self
{
$this->repas = $repas;
return $this;
}
public function getSemaine(): ?string
{
return $this->semaine;
}
public function setSemaine(string $semaine): self
{
$this->semaine = $semaine;
return $this;
}
public function getFoodtruck(): ?Foodtruck
{
return $this->foodtruck;
}
public function setFoodtruck(?Foodtruck $foodtruck): self
{
$this->foodtruck = $foodtruck;
return $this;
}
public function getEmplacement(): ?Emplacement
{
return $this->emplacement;
}
public function setEmplacement(?Emplacement $emplacement): self
{
$this->emplacement = $emplacement;
return $this;
}
}