src/Entity/ComandeProduit.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ComandeProduit
  6.  *
  7.  * @ORM\Table(name="comande_produit", indexes={@ORM\Index(name="IdCommand_idx", columns={"id_comande"}), @ORM\Index(name="IdProduit_idx", columns={"id_produit"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\ComandeProduitRespository")
  9.  */
  10. class ComandeProduit
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var int|null
  22.      *
  23.      * @ORM\Column(name="quantiter", type="integer", nullable=true)
  24.      */
  25.     private $quantiter;
  26.     /**
  27.      * @var string|null
  28.      *
  29.      * @ORM\Column(name="reversement", type="decimal", precision=10, scale=0, nullable=true)
  30.      */
  31.     private $reversement;
  32.     /**
  33.      * @var \DateTime|null
  34.      *
  35.      * @ORM\Column(name="date", type="date", nullable=true)
  36.      */
  37.     private $date;
  38.     /**
  39.      * @var \Commande
  40.      *
  41.      * @ORM\ManyToOne(targetEntity="Commande")
  42.      * @ORM\JoinColumns({
  43.      *   @ORM\JoinColumn(name="id_comande", referencedColumnName="id")
  44.      * })
  45.      */
  46.     private $idComande;
  47.     /**
  48.      * @var \Produit
  49.      *
  50.      * @ORM\ManyToOne(targetEntity="Produit")
  51.      * @ORM\JoinColumns({
  52.      *   @ORM\JoinColumn(name="id_produit", referencedColumnName="id")
  53.      * })
  54.      */
  55.     private $idProduit;
  56.     /**
  57.      * @ORM\Column(type="integer", nullable=true)
  58.      */
  59.     private $pourcentage;
  60.     public function getId(): ?int
  61.     {
  62.         return $this->id;
  63.     }
  64.     public function getQuantiter(): ?int
  65.     {
  66.         return $this->quantiter;
  67.     }
  68.     public function setQuantiter(?int $quantiter): self
  69.     {
  70.         $this->quantiter $quantiter;
  71.         return $this;
  72.     }
  73.     public function getReversement(): ?string
  74.     {
  75.         return $this->reversement;
  76.     }
  77.     public function setReversement(?string $reversement): self
  78.     {
  79.         $this->reversement $reversement;
  80.         return $this;
  81.     }
  82.     public function getDate(): ?\DateTimeInterface
  83.     {
  84.         return $this->date;
  85.     }
  86.     public function setDate(?\DateTimeInterface $date): self
  87.     {
  88.         $this->date $date;
  89.         return $this;
  90.     }
  91.     public function getIdComande(): ?Commande
  92.     {
  93.         return $this->idComande;
  94.     }
  95.     public function setIdComande(?Commande $idComande): self
  96.     {
  97.         $this->idComande $idComande;
  98.         return $this;
  99.     }
  100.     public function getIdProduit(): ?Produit
  101.     {
  102.         return $this->idProduit;
  103.     }
  104.     public function setIdProduit(?Produit $idProduit): self
  105.     {
  106.         $this->idProduit $idProduit;
  107.         return $this;
  108.     }
  109.     public function getPourcentage(): ?int
  110.     {
  111.         return $this->pourcentage;
  112.     }
  113.     public function setPourcentage(?int $pourcentage): self
  114.     {
  115.         $this->pourcentage $pourcentage;
  116.         return $this;
  117.     }
  118. }