src/Entity/Depot.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DepotRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DepotRepository::class)
  7.  */
  8. class Depot
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=10)
  18.      */
  19.     private $quantite;
  20.     /**
  21.      * @ORM\Column(type="datetime")
  22.      */
  23.     private $sortieAt;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Commande::class, inversedBy="depots")
  26.      */
  27.     private $commande;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $remarque;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Utilisateur::class, inversedBy="depots")
  34.      */
  35.     private $user;
  36.     /**
  37.      * @ORM\Column(type="string", length=255)
  38.      */
  39.     private $noms;
  40.     /**
  41.      * @ORM\Column(type="string", length=255)
  42.      */
  43.     private $telephone;
  44.     /**
  45.      * @ORM\Column(type="string", length=100, nullable=true)
  46.      */
  47.     private $plaque;
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     public function getQuantite(): ?string
  53.     {
  54.         return $this->quantite;
  55.     }
  56.     public function setQuantite(string $quantite): self
  57.     {
  58.         $this->quantite = $quantite;
  59.         return $this;
  60.     }
  61.     public function getSortieAt(): ?\DateTimeInterface
  62.     {
  63.         return $this->sortieAt;
  64.     }
  65.     public function setSortieAt(\DateTimeInterface $sortieAt): self
  66.     {
  67.         $this->sortieAt = $sortieAt;
  68.         return $this;
  69.     }
  70.     public function getCommande(): ?Commande
  71.     {
  72.         return $this->commande;
  73.     }
  74.     public function setCommande(?Commande $commande): self
  75.     {
  76.         $this->commande = $commande;
  77.         return $this;
  78.     }
  79.     public function getRemarque(): ?string
  80.     {
  81.         return $this->remarque;
  82.     }
  83.     public function setRemarque(?string $remarque): self
  84.     {
  85.         $this->remarque = $remarque;
  86.         return $this;
  87.     }
  88.     public function getUser(): ?Utilisateur
  89.     {
  90.         return $this->user;
  91.     }
  92.     public function setUser(?Utilisateur $user): self
  93.     {
  94.         $this->user = $user;
  95.         return $this;
  96.     }
  97.     public function getNoms(): ?string
  98.     {
  99.         return $this->noms;
  100.     }
  101.     public function setNoms(string $noms): self
  102.     {
  103.         $this->noms = $noms;
  104.         return $this;
  105.     }
  106.     public function getTelephone(): ?string
  107.     {
  108.         return $this->telephone;
  109.     }
  110.     public function setTelephone(string $telephone): self
  111.     {
  112.         $this->telephone = $telephone;
  113.         return $this;
  114.     }
  115.     public function getPlaque(): ?string
  116.     {
  117.         return $this->plaque;
  118.     }
  119.     public function setPlaque(?string $plaque): self
  120.     {
  121.         $this->plaque = $plaque;
  122.         return $this;
  123.     }
  124. }