<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\BillingItemsRepository;
/**
* Billing
*
* @ORM\Table(name="billing_item")
* @ORM\Entity(repositoryClass=BillingItemsRepository::class)
*/
class BillingItem
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string|null
*
* @ORM\Column(name="dateRDV", type="date", nullable=true)
*/
private $dateRDV;
/**
* @var string|null
*
* @ORM\Column(name="refProduct", type="string", nullable=true)
*/
private $refProduct;
/**
* @var string|null
*
* @ORM\Column(name="price", type="float", nullable=true)
*/
private $price;
/**
* @var string|null
*
* @ORM\Column(name="ttc", type="float", nullable=true)
*/
private $ttc;
/**
* @var string|null
*
* @ORM\Column(name="tva", type="float", nullable=true)
*/
private $tva;
/**
* @var string|null
*
* @ORM\Column(name="discount", type="float", nullable=true)
*/
private $discount;
/**
* @var string|null
*
* @ORM\Column(name="quantity", type="integer", nullable=true)
*/
private $quantity;
/**
* @var string|null
*
* @ORM\Column(name="libelleProduct", type="string", nullable=true)
*/
private $libelleProduct;
/**
* @var Product
*
* @ORM\ManyToOne(targetEntity=Product::class, cascade={"persist"})
* @ORM\JoinColumn(name="product_id", referencedColumnName="id")
*/
private $product;
/**
* @var RDV
*
* @ORM\ManyToOne(targetEntity=RDV::class, cascade={"persist"})
* @ORM\JoinColumn(name="rdv_id", referencedColumnName="id")
*/
private $rdv;
/**
* @var Billing
* @ORM\ManyToOne(targetEntity=Billing::class, inversedBy="billingItems", cascade={"remove"})
* @ORM\JoinColumn(name="billing_id", referencedColumnName="id")
*/
private $billing;
public function getId(): ?int
{
return $this->id;
}
/**
* @return string|null
*/
public function getRefProduct(): ?string
{
return $this->refProduct;
}
/**
* @param string|null $refProduct
*/
public function setRefProduct(?string $refProduct): void
{
$this->refProduct = $refProduct;
}
/**
* @return Billing
*/
public function getBilling(): ?Billing
{
return $this->billing;
}
/**
* @param Billing $billing
*/
public function setBilling(Billing $billing): void
{
$this->billing = $billing;
}
/**
* @return string|null
*/
public function getLibelleProduct(): ?string
{
return $this->libelleProduct;
}
/**
* @param string|null $libelleProduct
*/
public function setLibelleProduct(?string $libelleProduct): void
{
$this->libelleProduct = $libelleProduct;
}
/**
* @return Product
*/
public function getProduct(): ?Product
{
return $this->product;
}
/**
* @param Product $product
*/
public function setProduct(Product $product): void
{
$this->product = $product;
}
/**
* @return string|null
*/
public function getPrice(): ?string
{
return $this->price;
}
/**
* @param string|null $price
*/
public function setPrice(?string $price): void
{
$this->price = $price;
}
/**
* @return string|null
*/
public function getTtc(): ?string
{
return $this->ttc;
}
/**
* @param string|null $ttc
*/
public function setTtc(?string $ttc): void
{
$this->ttc = $ttc;
}
/**
* @return string|null
*/
public function getDiscount(): ?string
{
return $this->discount;
}
/**
* @param string|null $discount
*/
public function setDiscount(?string $discount): void
{
$this->discount = $discount;
}
/**
* @return string|null
*/
public function getQuantity(): ?int
{
return $this->quantity;
}
/**
* @param int|null $quantity
*/
public function setQuantity(?int $quantity): void
{
$this->quantity = $quantity;
}
/**
* @return string|null
*/
public function getDateRDV()
{
return $this->dateRDV;
}
/**
* @param string|null $dateRDV
*/
public function setDateRDV($dateRDV): void
{
$this->dateRDV = $dateRDV;
}
/**
* @return string|null
*/
public function getTva(): ?string
{
return $this->tva;
}
/**
* @param string|null $tva
*/
public function setTva(?string $tva): void
{
$this->tva = $tva;
}
/**
* @return RDV
*/
public function getRdv(): ?RDV
{
return $this->rdv;
}
/**
* @param RDV $rdv
*/
public function setRdv(?RDV $rdv): void
{
$this->rdv = $rdv;
}
}