src/Entity/BillingItem.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\BillingItemsRepository;
  5. /**
  6.  * Billing
  7.  *
  8.  * @ORM\Table(name="billing_item")
  9.  * @ORM\Entity(repositoryClass=BillingItemsRepository::class)
  10.  */
  11. class BillingItem
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string|null
  23.      *
  24.      * @ORM\Column(name="dateRDV", type="date", nullable=true)
  25.      */
  26.     private $dateRDV;
  27.     /**
  28.      * @var string|null
  29.      *
  30.      * @ORM\Column(name="refProduct", type="string", nullable=true)
  31.      */
  32.     private $refProduct;
  33.     /**
  34.      * @var string|null
  35.      *
  36.      * @ORM\Column(name="price", type="float", nullable=true)
  37.      */
  38.     private $price;
  39.     /**
  40.      * @var string|null
  41.      *
  42.      * @ORM\Column(name="ttc", type="float", nullable=true)
  43.      */
  44.     private $ttc;
  45.     /**
  46.      * @var string|null
  47.      *
  48.      * @ORM\Column(name="tva", type="float", nullable=true)
  49.      */
  50.     private $tva;
  51.     /**
  52.      * @var string|null
  53.      *
  54.      * @ORM\Column(name="discount", type="float", nullable=true)
  55.      */
  56.     private $discount;
  57.     /**
  58.      * @var string|null
  59.      *
  60.      * @ORM\Column(name="quantity", type="integer", nullable=true)
  61.      */
  62.     private $quantity;
  63.     /**
  64.      * @var string|null
  65.      *
  66.      * @ORM\Column(name="libelleProduct", type="string", nullable=true)
  67.      */
  68.     private $libelleProduct;
  69.     /**
  70.      * @var Product
  71.      *
  72.      * @ORM\ManyToOne(targetEntity=Product::class, cascade={"persist"})
  73.      * @ORM\JoinColumn(name="product_id", referencedColumnName="id")
  74.      */
  75.     private $product;
  76.     /**
  77.      * @var RDV
  78.      *
  79.      * @ORM\ManyToOne(targetEntity=RDV::class, cascade={"persist"})
  80.      * @ORM\JoinColumn(name="rdv_id", referencedColumnName="id")
  81.      */
  82.     private $rdv;
  83.     /**
  84.      * @var Billing
  85.      * @ORM\ManyToOne(targetEntity=Billing::class, inversedBy="billingItems", cascade={"remove"})
  86.      * @ORM\JoinColumn(name="billing_id", referencedColumnName="id")
  87.      */
  88.     private $billing;
  89.     public function getId(): ?int
  90.     {
  91.         return $this->id;
  92.     }
  93.     /**
  94.      * @return string|null
  95.      */
  96.     public function getRefProduct(): ?string
  97.     {
  98.         return $this->refProduct;
  99.     }
  100.     /**
  101.      * @param string|null $refProduct
  102.      */
  103.     public function setRefProduct(?string $refProduct): void
  104.     {
  105.         $this->refProduct $refProduct;
  106.     }
  107.     /**
  108.      * @return Billing
  109.      */
  110.     public function getBilling(): ?Billing
  111.     {
  112.         return $this->billing;
  113.     }
  114.     /**
  115.      * @param Billing $billing
  116.      */
  117.     public function setBilling(Billing $billing): void
  118.     {
  119.         $this->billing $billing;
  120.     }
  121.     /**
  122.      * @return string|null
  123.      */
  124.     public function getLibelleProduct(): ?string
  125.     {
  126.         return $this->libelleProduct;
  127.     }
  128.     /**
  129.      * @param string|null $libelleProduct
  130.      */
  131.     public function setLibelleProduct(?string $libelleProduct): void
  132.     {
  133.         $this->libelleProduct $libelleProduct;
  134.     }
  135.     /**
  136.      * @return Product
  137.      */
  138.     public function getProduct(): ?Product
  139.     {
  140.         return $this->product;
  141.     }
  142.     /**
  143.      * @param Product $product
  144.      */
  145.     public function setProduct(Product $product): void
  146.     {
  147.         $this->product $product;
  148.     }
  149.     /**
  150.      * @return string|null
  151.      */
  152.     public function getPrice(): ?string
  153.     {
  154.         return $this->price;
  155.     }
  156.     /**
  157.      * @param string|null $price
  158.      */
  159.     public function setPrice(?string $price): void
  160.     {
  161.         $this->price $price;
  162.     }
  163.     /**
  164.      * @return string|null
  165.      */
  166.     public function getTtc(): ?string
  167.     {
  168.         return $this->ttc;
  169.     }
  170.     /**
  171.      * @param string|null $ttc
  172.      */
  173.     public function setTtc(?string $ttc): void
  174.     {
  175.         $this->ttc $ttc;
  176.     }
  177.     /**
  178.      * @return string|null
  179.      */
  180.     public function getDiscount(): ?string
  181.     {
  182.         return $this->discount;
  183.     }
  184.     /**
  185.      * @param string|null $discount
  186.      */
  187.     public function setDiscount(?string $discount): void
  188.     {
  189.         $this->discount $discount;
  190.     }
  191.     /**
  192.      * @return string|null
  193.      */
  194.     public function getQuantity(): ?int
  195.     {
  196.         return $this->quantity;
  197.     }
  198.     /**
  199.      * @param int|null $quantity
  200.      */
  201.     public function setQuantity(?int $quantity): void
  202.     {
  203.         $this->quantity $quantity;
  204.     }
  205.     /**
  206.      * @return string|null
  207.      */
  208.     public function getDateRDV()
  209.     {
  210.         return $this->dateRDV;
  211.     }
  212.     /**
  213.      * @param string|null $dateRDV
  214.      */
  215.     public function setDateRDV($dateRDV): void
  216.     {
  217.         $this->dateRDV $dateRDV;
  218.     }
  219.     /**
  220.      * @return string|null
  221.      */
  222.     public function getTva(): ?string
  223.     {
  224.         return $this->tva;
  225.     }
  226.     /**
  227.      * @param string|null $tva
  228.      */
  229.     public function setTva(?string $tva): void
  230.     {
  231.         $this->tva $tva;
  232.     }
  233.     /**
  234.      * @return RDV
  235.      */
  236.     public function getRdv(): ?RDV
  237.     {
  238.         return $this->rdv;
  239.     }
  240.     /**
  241.      * @param RDV $rdv
  242.      */
  243.     public function setRdv(?RDV $rdv): void
  244.     {
  245.         $this->rdv $rdv;
  246.     }
  247. }