src/Entity/OrderDetails.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OrderDetailsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=OrderDetailsRepository::class)
  7.  */
  8. class OrderDetails
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $product;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $cip;
  24.     /**
  25.      * @ORM\Column(type="string", length=255)
  26.      */
  27.     private $collissge;
  28.     /**
  29.      * @ORM\Column(type="integer")
  30.      */
  31.     private $quantity;
  32.     /**
  33.      * @ORM\Column(type="float")
  34.      */
  35.     private $price;
  36.     /**
  37.      * @ORM\Column(type="float")
  38.      */
  39.     private $total;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity=Order::class, inversedBy="orderDetails")
  42.      * @ORM\JoinColumn(nullable=false)
  43.      */
  44.     private $myorder;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="orderDetails")
  47.      */
  48.     private $product_id;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $laboratoire;
  53.     /**
  54.      * @ORM\Column(type="string", length=255, nullable=true)
  55.      */
  56.     private $laboadress;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $labophone;
  61.     /**
  62.      * @ORM\Column(type="string", length=255, nullable=true)
  63.      */
  64.     private $laboemail;
  65.     /**
  66.      * @ORM\Column(type="boolean", nullable=true)
  67.      */
  68.     private $isDisponible;
  69.     /**
  70.      * @ORM\Column(type="float", nullable=true)
  71.      */
  72.     private $regle;
  73.     /**
  74.      * @ORM\Column(type="string", length=255, nullable=true)
  75.      */
  76.     private $ordonnance;
  77.     /**
  78.      * @ORM\Column(type="string", length=255, nullable=true)
  79.      */
  80.     private $lot;
  81.     /**
  82.      * @ORM\Column(type="string", length=255, nullable=true)
  83.      */
  84.     private $exp;
  85.     public function getId(): ?int
  86.     {
  87.         return $this->id;
  88.     }
  89.     public function getProduct(): ?string
  90.     {
  91.         return $this->product;
  92.     }
  93.     public function setProduct(string $product): self
  94.     {
  95.         $this->product $product;
  96.         return $this;
  97.     }
  98.     public function getCip(): ?string
  99.     {
  100.         return $this->cip;
  101.     }
  102.     public function setCip(string $cip): self
  103.     {
  104.         $this->cip $cip;
  105.         return $this;
  106.     }
  107.     public function getCollissge(): ?string
  108.     {
  109.         return $this->collissge;
  110.     }
  111.     public function setCollissge(string $collissge): self
  112.     {
  113.         $this->collissge $collissge;
  114.         return $this;
  115.     }
  116.     public function getQuantity(): ?int
  117.     {
  118.         return $this->quantity;
  119.     }
  120.     public function setQuantity(int $quantity): self
  121.     {
  122.         $this->quantity $quantity;
  123.         return $this;
  124.     }
  125.     public function getPrice(): ?float
  126.     {
  127.         return $this->price;
  128.     }
  129.     public function setPrice(float $price): self
  130.     {
  131.         $this->price $price;
  132.         return $this;
  133.     }
  134.     public function getTotal(): ?float
  135.     {
  136.         return $this->total;
  137.     }
  138.     public function setTotal(float $total): self
  139.     {
  140.         $this->total $total;
  141.         return $this;
  142.     }
  143.     public function getMyorder(): ?Order
  144.     {
  145.         return $this->myorder;
  146.     }
  147.     public function setMyorder(?Order $myorder): self
  148.     {
  149.         $this->myorder $myorder;
  150.         return $this;
  151.     }
  152.     public function getProductId(): ?Product
  153.     {
  154.         return $this->product_id;
  155.     }
  156.     public function setProductId(?Product $product_id): self
  157.     {
  158.         $this->product_id $product_id;
  159.         return $this;
  160.     }
  161.     public function getLaboratoire(): ?string
  162.     {
  163.         return $this->laboratoire;
  164.     }
  165.     public function setLaboratoire(?string $laboratoire): self
  166.     {
  167.         $this->laboratoire $laboratoire;
  168.         return $this;
  169.     }
  170.     public function getLaboadress(): ?string
  171.     {
  172.         return $this->laboadress;
  173.     }
  174.     public function setLaboadress(?string $laboadress): self
  175.     {
  176.         $this->laboadress $laboadress;
  177.         return $this;
  178.     }
  179.     public function getLabophone(): ?string
  180.     {
  181.         return $this->labophone;
  182.     }
  183.     public function setLabophone(?string $labophone): self
  184.     {
  185.         $this->labophone $labophone;
  186.         return $this;
  187.     }
  188.     public function getLaboemail(): ?string
  189.     {
  190.         return $this->laboemail;
  191.     }
  192.     public function setLaboemail(?string $laboemail): self
  193.     {
  194.         $this->laboemail $laboemail;
  195.         return $this;
  196.     }
  197.     public function getIsDisponible(): ?bool
  198.     {
  199.         return $this->isDisponible;
  200.     }
  201.     public function setIsDisponible(?bool $isDisponible): self
  202.     {
  203.         $this->isDisponible $isDisponible;
  204.         return $this;
  205.     }
  206.     public function getRegle(): ?float
  207.     {
  208.         return $this->regle;
  209.     }
  210.     public function setRegle(?float $regle): self
  211.     {
  212.         $this->regle $regle;
  213.         return $this;
  214.     }
  215.     public function getOrdonnance(): ?string
  216.     {
  217.         return $this->ordonnance;
  218.     }
  219.     public function setOrdonnance(?string $ordonnance): self
  220.     {
  221.         $this->ordonnance $ordonnance;
  222.         return $this;
  223.     }
  224.     public function getLot(): ?string
  225.     {
  226.         return $this->lot;
  227.     }
  228.     public function setLot(?string $lot): self
  229.     {
  230.         $this->lot $lot;
  231.         return $this;
  232.     }
  233.     public function getExp(): ?string
  234.     {
  235.         return $this->exp;
  236.     }
  237.     public function setExp(?string $exp): self
  238.     {
  239.         $this->exp $exp;
  240.         return $this;
  241.     }
  242. }