<?php /** @noinspection PhpUnnecessarySemicolonInspection */namespace App\Entity\Rangements;use App\Entity\GestionComerciale\Commande;use DateTime;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Symfony\Component\Validator\Constraints as Assert;use Doctrine\ORM\Mapping\Index;;/** * CommandeEmplacement * * @ORM\Table("rangement__commande_emplacement") * @ORM\Entity(repositoryClass="App\Repository\Rangements\CommandeEmplacementRepository") */class CommandeEmplacement{ /** * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\Column(name="date", type="datetime") */ private $date; /** * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande", inversedBy="commandeEmplacements") * @ORM\JoinColumn(nullable=true) */ private $commande; /** * @ORM\ManyToOne(targetEntity="App\Entity\Rangements\NiveauUn") * @ORM\JoinColumn(nullable=true) */ private $niveauUn; /** * @ORM\ManyToOne(targetEntity="App\Entity\Rangements\NiveauDeux") * @ORM\JoinColumn(nullable=true) */ private $niveauDeux; /** * @ORM\ManyToOne(targetEntity="App\Entity\Rangements\NiveauTrois") * @ORM\JoinColumn(nullable=true) */ private $niveauTrois; /** * @ORM\ManyToOne(targetEntity="App\Entity\Rangements\NiveauQuatre") * @ORM\JoinColumn(nullable=true) */ private $niveauQuatre; public function __construct(){ $this->date = new Datetime(); } public function getId(): int { return $this->id; } public function setDate(DateTime $date): CommandeEmplacement { $this->date = $date; return $this; } public function getDate(): DateTime { return $this->date; } public function setCommande(?Commande $commande): CommandeEmplacement { $this->commande = $commande; return $this; } public function getCommande(): ?Commande { return $this->commande; } public function setNiveauUn(?NiveauUn $niveauUn): CommandeEmplacement { $this->niveauUn = $niveauUn; return $this; } public function getNiveauUn(): ?NiveauUn { return $this->niveauUn; } public function setNiveauDeux(?NiveauDeux $niveauDeux): CommandeEmplacement { $this->niveauDeux = $niveauDeux; return $this; } public function getNiveauDeux(): ?NiveauDeux { return $this->niveauDeux; } public function setNiveauTrois(?NiveauTrois $niveauTrois): CommandeEmplacement { $this->niveauTrois = $niveauTrois; return $this; } public function getNiveauTrois(): ?NiveauTrois { return $this->niveauTrois; } public function setNiveauQuatre(?NiveauQuatre $niveauQuatre): CommandeEmplacement { $this->niveauQuatre = $niveauQuatre; return $this; } public function getNiveauQuatre(): ?NiveauQuatre { return $this->niveauQuatre; }}