src/Entity/Rangements/CommandeEmplacement.php line 18

Open in your IDE?
  1. <?php /** @noinspection PhpUnnecessarySemicolonInspection */
  2. namespace App\Entity\Rangements;
  3. use App\Entity\GestionComerciale\Commande;
  4. use DateTime;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use Doctrine\ORM\Mapping\Index;;
  9. /**
  10.  * CommandeEmplacement
  11.  *
  12.  * @ORM\Table("rangement__commande_emplacement")
  13.  * @ORM\Entity(repositoryClass="App\Repository\Rangements\CommandeEmplacementRepository")
  14.  */
  15. class CommandeEmplacement
  16. {
  17.     /**
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @ORM\Column(name="date", type="datetime")
  25.      */
  26.     private $date;
  27.     
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande", inversedBy="commandeEmplacements")
  30.      * @ORM\JoinColumn(nullable=true)
  31.      */
  32.     private $commande;
  33.     
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity="App\Entity\Rangements\NiveauUn")
  36.      * @ORM\JoinColumn(nullable=true)
  37.      */
  38.     private $niveauUn;
  39.     
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity="App\Entity\Rangements\NiveauDeux")
  42.      * @ORM\JoinColumn(nullable=true)
  43.      */
  44.     private $niveauDeux;
  45.     
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity="App\Entity\Rangements\NiveauTrois")
  48.      * @ORM\JoinColumn(nullable=true)
  49.      */
  50.     private $niveauTrois;
  51.     
  52.     /**
  53.      * @ORM\ManyToOne(targetEntity="App\Entity\Rangements\NiveauQuatre")
  54.      * @ORM\JoinColumn(nullable=true)
  55.      */
  56.     private $niveauQuatre;    
  57.     
  58.     
  59.     public function __construct(){
  60.         $this->date = new Datetime();
  61.     }    
  62.     public function getId(): int
  63.     {
  64.         return $this->id;
  65.     }
  66.     public function setDate(DateTime $date): CommandeEmplacement
  67.     {
  68.         $this->date $date;
  69.         return $this;
  70.     }
  71.     public function getDate(): DateTime
  72.     {
  73.         return $this->date;
  74.     }
  75.     public function setCommande(?Commande $commande): CommandeEmplacement
  76.     {
  77.         $this->commande $commande;
  78.         return $this;
  79.     }
  80.     public function getCommande(): ?Commande
  81.     {
  82.         return $this->commande;
  83.     }
  84.     public function setNiveauUn(?NiveauUn $niveauUn): CommandeEmplacement
  85.     {
  86.         $this->niveauUn $niveauUn;
  87.         return $this;
  88.     }
  89.     public function getNiveauUn(): ?NiveauUn
  90.     {
  91.         return $this->niveauUn;
  92.     }
  93.     public function setNiveauDeux(?NiveauDeux $niveauDeux): CommandeEmplacement
  94.     {
  95.         $this->niveauDeux $niveauDeux;
  96.         return $this;
  97.     }
  98.     public function getNiveauDeux(): ?NiveauDeux
  99.     {
  100.         return $this->niveauDeux;
  101.     }
  102.     public function setNiveauTrois(?NiveauTrois $niveauTrois): CommandeEmplacement
  103.     {
  104.         $this->niveauTrois $niveauTrois;
  105.         return $this;
  106.     }
  107.     public function getNiveauTrois(): ?NiveauTrois
  108.     {
  109.         return $this->niveauTrois;
  110.     }
  111.     public function setNiveauQuatre(?NiveauQuatre $niveauQuatre): CommandeEmplacement
  112.     {
  113.         $this->niveauQuatre $niveauQuatre;
  114.         return $this;
  115.     }
  116.     public function getNiveauQuatre(): ?NiveauQuatre
  117.     {
  118.         return $this->niveauQuatre;
  119.     }
  120. }