<?php
namespace App\Entity;
use App\Repository\OrderDetailsRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=OrderDetailsRepository::class)
*/
class OrderDetails
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $product;
/**
* @ORM\Column(type="string", length=255)
*/
private $cip;
/**
* @ORM\Column(type="string", length=255)
*/
private $collissge;
/**
* @ORM\Column(type="integer")
*/
private $quantity;
/**
* @ORM\Column(type="float")
*/
private $price;
/**
* @ORM\Column(type="float")
*/
private $total;
/**
* @ORM\ManyToOne(targetEntity=Order::class, inversedBy="orderDetails")
* @ORM\JoinColumn(nullable=false)
*/
private $myorder;
/**
* @ORM\ManyToOne(targetEntity=Product::class, inversedBy="orderDetails")
*/
private $product_id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $laboratoire;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $laboadress;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $labophone;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $laboemail;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isDisponible;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $regle;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $ordonnance;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $lot;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $exp;
public function getId(): ?int
{
return $this->id;
}
public function getProduct(): ?string
{
return $this->product;
}
public function setProduct(string $product): self
{
$this->product = $product;
return $this;
}
public function getCip(): ?string
{
return $this->cip;
}
public function setCip(string $cip): self
{
$this->cip = $cip;
return $this;
}
public function getCollissge(): ?string
{
return $this->collissge;
}
public function setCollissge(string $collissge): self
{
$this->collissge = $collissge;
return $this;
}
public function getQuantity(): ?int
{
return $this->quantity;
}
public function setQuantity(int $quantity): self
{
$this->quantity = $quantity;
return $this;
}
public function getPrice(): ?float
{
return $this->price;
}
public function setPrice(float $price): self
{
$this->price = $price;
return $this;
}
public function getTotal(): ?float
{
return $this->total;
}
public function setTotal(float $total): self
{
$this->total = $total;
return $this;
}
public function getMyorder(): ?Order
{
return $this->myorder;
}
public function setMyorder(?Order $myorder): self
{
$this->myorder = $myorder;
return $this;
}
public function getProductId(): ?Product
{
return $this->product_id;
}
public function setProductId(?Product $product_id): self
{
$this->product_id = $product_id;
return $this;
}
public function getLaboratoire(): ?string
{
return $this->laboratoire;
}
public function setLaboratoire(?string $laboratoire): self
{
$this->laboratoire = $laboratoire;
return $this;
}
public function getLaboadress(): ?string
{
return $this->laboadress;
}
public function setLaboadress(?string $laboadress): self
{
$this->laboadress = $laboadress;
return $this;
}
public function getLabophone(): ?string
{
return $this->labophone;
}
public function setLabophone(?string $labophone): self
{
$this->labophone = $labophone;
return $this;
}
public function getLaboemail(): ?string
{
return $this->laboemail;
}
public function setLaboemail(?string $laboemail): self
{
$this->laboemail = $laboemail;
return $this;
}
public function getIsDisponible(): ?bool
{
return $this->isDisponible;
}
public function setIsDisponible(?bool $isDisponible): self
{
$this->isDisponible = $isDisponible;
return $this;
}
public function getRegle(): ?float
{
return $this->regle;
}
public function setRegle(?float $regle): self
{
$this->regle = $regle;
return $this;
}
public function getOrdonnance(): ?string
{
return $this->ordonnance;
}
public function setOrdonnance(?string $ordonnance): self
{
$this->ordonnance = $ordonnance;
return $this;
}
public function getLot(): ?string
{
return $this->lot;
}
public function setLot(?string $lot): self
{
$this->lot = $lot;
return $this;
}
public function getExp(): ?string
{
return $this->exp;
}
public function setExp(?string $exp): self
{
$this->exp = $exp;
return $this;
}
}