src/Entity/DetailsOrders.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DetailsOrdersRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DetailsOrdersRepository::class)
  7.  */
  8. class DetailsOrders
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Order::class)
  18.      */
  19.     private $idorder;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Product::class)
  22.      */
  23.     private $idproduct;
  24.     /**
  25.      * @ORM\Column(type="integer")
  26.      */
  27.     private $quantity;
  28.     /**
  29.      * @ORM\Column(type="integer", nullable=true)
  30.      */
  31.     private $state;
  32.     /**
  33.      * @ORM\Column(type="text")
  34.      */
  35.     private $motif;
  36.     /**
  37.      * @ORM\Column(type="integer")
  38.      */
  39.     private $prixUnitaire;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getIdorder(): ?Order
  45.     {
  46.         return $this->idorder;
  47.     }
  48.     public function setIdorder(?Order $idorder): self
  49.     {
  50.         $this->idorder $idorder;
  51.         return $this;
  52.     }
  53.     public function getIdproduct(): ?Product
  54.     {
  55.         return $this->idproduct;
  56.     }
  57.     public function setIdproduct(?Product $idproduct): self
  58.     {
  59.         $this->idproduct $idproduct;
  60.         return $this;
  61.     }
  62.     public function getQuantity(): ?int
  63.     {
  64.         return $this->quantity;
  65.     }
  66.     public function setQuantity(int $quantity): self
  67.     {
  68.         $this->quantity $quantity;
  69.         return $this;
  70.     }
  71.     public function getState(): ?int
  72.     {
  73.         return $this->state;
  74.     }
  75.     public function setState(?int $state): self
  76.     {
  77.         $this->state $state;
  78.         return $this;
  79.     }
  80.     public function getMotif(): ?string
  81.     {
  82.         return $this->motif;
  83.     }
  84.     public function setMotif(string $motif): self
  85.     {
  86.         $this->motif $motif;
  87.         return $this;
  88.     }
  89.     public function getPrixUnitaire(): ?int
  90.     {
  91.         return $this->prixUnitaire;
  92.     }
  93.     public function setPrixUnitaire(int $prixUnitaire): self
  94.     {
  95.         $this->prixUnitaire $prixUnitaire;
  96.         return $this;
  97.     }
  98. }