src/Entity/DocumentProduit.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentProduitRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DocumentProduitRepository::class)
  7.  */
  8. class DocumentProduit
  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, nullable=true)
  18.      */
  19.     private $reference;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $name;
  24.     /**
  25.      * @ORM\Column(type="text", nullable=true)
  26.      */
  27.     private $description;
  28.     /**
  29.      * @ORM\Column(type="float", nullable=true)
  30.      */
  31.     private $priceHt;
  32.     /**
  33.      * @ORM\Column(type="float", nullable=true)
  34.      */
  35.     private $priceTtc;
  36.     /**
  37.      * @ORM\Column(type="string", length=255)
  38.      */
  39.     private $type;
  40.     /**
  41.      * @ORM\Column(type="float", nullable=true)
  42.      */
  43.     private $discount;
  44.     /**
  45.      * @ORM\Column(type="string", length=255, nullable=true)
  46.      */
  47.     private $discountType;
  48.     /**
  49.      * @ORM\Column(type="integer", nullable=true)
  50.      */
  51.     private $quantity;
  52.     /**
  53.      * @ORM\Column(type="string", length=255, nullable=true)
  54.      */
  55.     private $unite;
  56.     /**
  57.      * @ORM\Column(type="datetime")
  58.      */
  59.     private $createdAt;
  60.     /**
  61.      * @ORM\Column(type="text", nullable=true)
  62.      */
  63.     private $comment;
  64.     /**
  65.      * @ORM\ManyToOne(targetEntity=Tva::class)
  66.      */
  67.     private $tva;
  68.     /**
  69.      * @ORM\ManyToOne(targetEntity=Produit::class, inversedBy="documentProduits")
  70.      */
  71.     private $produit;
  72.     /**
  73.      * @ORM\ManyToOne(targetEntity=Document::class, inversedBy="documentProduits")
  74.      */
  75.     private $document;
  76.     /**
  77.      * @ORM\ManyToOne(targetEntity=Pack::class, inversedBy="documentPacks")
  78.      */
  79.     private $pack;
  80.     /**
  81.      * @ORM\Column(type="float")
  82.      */
  83.     private $totalAmount;
  84.     public function getId(): ?int
  85.     {
  86.         return $this->id;
  87.     }
  88.     public function getReference(): ?string
  89.     {
  90.         return $this->reference;
  91.     }
  92.     public function setReference(?string $reference): self
  93.     {
  94.         $this->reference $reference;
  95.         return $this;
  96.     }
  97.     public function getName(): ?string
  98.     {
  99.         return $this->name;
  100.     }
  101.     public function setName(?string $name): self
  102.     {
  103.         $this->name $name;
  104.         return $this;
  105.     }
  106.     public function getDescription(): ?string
  107.     {
  108.         return $this->description;
  109.     }
  110.     public function setDescription(?string $description): self
  111.     {
  112.         $this->description $description;
  113.         return $this;
  114.     }
  115.     public function getPriceHt(): ?float
  116.     {
  117.         return $this->priceHt;
  118.     }
  119.     public function setPriceHt(?float $priceHt): self
  120.     {
  121.         $this->priceHt $priceHt;
  122.         return $this;
  123.     }
  124.     public function getPriceTtc(): ?float
  125.     {
  126.         return $this->priceTtc;
  127.     }
  128.     public function setPriceTtc(?float $priceTtc): self
  129.     {
  130.         $this->priceTtc $priceTtc;
  131.         return $this;
  132.     }
  133.     public function getType(): ?string
  134.     {
  135.         return $this->type;
  136.     }
  137.     public function setType(string $type): self
  138.     {
  139.         $this->type $type;
  140.         return $this;
  141.     }
  142.     public function getDiscount(): ?float
  143.     {
  144.         return $this->discount;
  145.     }
  146.     public function setDiscount(?float $discount): self
  147.     {
  148.         $this->discount $discount;
  149.         return $this;
  150.     }
  151.     public function getDiscountType(): ?string
  152.     {
  153.         return $this->discountType;
  154.     }
  155.     public function setDiscountType(?string $discountType): self
  156.     {
  157.         $this->discountType $discountType;
  158.         return $this;
  159.     }
  160.     public function getQuantity(): ?int
  161.     {
  162.         return $this->quantity;
  163.     }
  164.     public function setQuantity(?int $quantity): self
  165.     {
  166.         $this->quantity $quantity;
  167.         return $this;
  168.     }
  169.     public function getUnite(): ?string
  170.     {
  171.         return $this->unite;
  172.     }
  173.     public function setUnite(?string $unite): self
  174.     {
  175.         $this->unite $unite;
  176.         return $this;
  177.     }
  178.     public function getCreatedAt(): ?\DateTimeInterface
  179.     {
  180.         return $this->createdAt;
  181.     }
  182.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  183.     {
  184.         $this->createdAt $createdAt;
  185.         return $this;
  186.     }
  187.     public function getComment(): ?string
  188.     {
  189.         return $this->comment;
  190.     }
  191.     public function setComment(?string $comment): self
  192.     {
  193.         $this->comment $comment;
  194.         return $this;
  195.     }
  196.     public function getTva(): ?Tva
  197.     {
  198.         return $this->tva;
  199.     }
  200.     public function setTva(?Tva $tva): self
  201.     {
  202.         $this->tva $tva;
  203.         return $this;
  204.     }
  205.     public function getProduit(): ?Produit
  206.     {
  207.         return $this->produit;
  208.     }
  209.     public function setProduit(?Produit $produit): self
  210.     {
  211.         $this->produit $produit;
  212.         return $this;
  213.     }
  214.     public function getDocument(): ?Document
  215.     {
  216.         return $this->document;
  217.     }
  218.     public function setDocument(?Document $document): self
  219.     {
  220.         $this->document $document;
  221.         return $this;
  222.     }
  223.     public function getTotalAmount(): ?float
  224.     {
  225.         return $this->totalAmount;
  226.     }
  227.     public function setTotalAmount(float $totalAmount): self
  228.     {
  229.         $this->totalAmount $totalAmount;
  230.         return $this;
  231.     }
  232. }