src/Entity/DocumentDeclinationProduit.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocumentDeclinationProduitRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=DocumentDeclinationProduitRepository::class)
  7.  */
  8. class DocumentDeclinationProduit
  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=ProduitDeclinationValue::class, inversedBy="documentDeclinationProduits")
  70.      */
  71.     private $produitDeclinationValue;
  72.     /**
  73.      * @ORM\ManyToOne(targetEntity=Document::class, inversedBy="documentDeclinationProduits")
  74.      */
  75.     private $document;
  76.     /**
  77.      * @ORM\Column(type="float")
  78.      */
  79.     private $totalAmount;
  80.     public function getId(): ?int
  81.     {
  82.         return $this->id;
  83.     }
  84.     public function getReference(): ?string
  85.     {
  86.         return $this->reference;
  87.     }
  88.     public function setReference(?string $reference): self
  89.     {
  90.         $this->reference $reference;
  91.         return $this;
  92.     }
  93.     public function getName(): ?string
  94.     {
  95.         return $this->name;
  96.     }
  97.     public function setName(?string $name): self
  98.     {
  99.         $this->name $name;
  100.         return $this;
  101.     }
  102.     public function getDescription(): ?string
  103.     {
  104.         return $this->description;
  105.     }
  106.     public function setDescription(?string $description): self
  107.     {
  108.         $this->description $description;
  109.         return $this;
  110.     }
  111.     public function getPriceHt(): ?float
  112.     {
  113.         return $this->priceHt;
  114.     }
  115.     public function setPriceHt(?float $priceHt): self
  116.     {
  117.         $this->priceHt $priceHt;
  118.         return $this;
  119.     }
  120.     public function getPriceTtc(): ?float
  121.     {
  122.         return $this->priceTtc;
  123.     }
  124.     public function setPriceTtc(?float $priceTtc): self
  125.     {
  126.         $this->priceTtc $priceTtc;
  127.         return $this;
  128.     }
  129.     public function getType(): ?string
  130.     {
  131.         return $this->type;
  132.     }
  133.     public function setType(string $type): self
  134.     {
  135.         $this->type $type;
  136.         return $this;
  137.     }
  138.     public function getDiscount(): ?float
  139.     {
  140.         return $this->discount;
  141.     }
  142.     public function setDiscount(?float $discount): self
  143.     {
  144.         $this->discount $discount;
  145.         return $this;
  146.     }
  147.     public function getDiscountType(): ?string
  148.     {
  149.         return $this->discountType;
  150.     }
  151.     public function setDiscountType(?string $discountType): self
  152.     {
  153.         $this->discountType $discountType;
  154.         return $this;
  155.     }
  156.     public function getQuantity(): ?int
  157.     {
  158.         return $this->quantity;
  159.     }
  160.     public function setQuantity(?int $quantity): self
  161.     {
  162.         $this->quantity $quantity;
  163.         return $this;
  164.     }
  165.     public function getUnite(): ?string
  166.     {
  167.         return $this->unite;
  168.     }
  169.     public function setUnite(?string $unite): self
  170.     {
  171.         $this->unite $unite;
  172.         return $this;
  173.     }
  174.     public function getCreatedAt(): ?\DateTimeInterface
  175.     {
  176.         return $this->createdAt;
  177.     }
  178.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  179.     {
  180.         $this->createdAt $createdAt;
  181.         return $this;
  182.     }
  183.     public function getComment(): ?string
  184.     {
  185.         return $this->comment;
  186.     }
  187.     public function setComment(?string $comment): self
  188.     {
  189.         $this->comment $comment;
  190.         return $this;
  191.     }
  192.     public function getTva(): ?Tva
  193.     {
  194.         return $this->tva;
  195.     }
  196.     public function setTva(?Tva $tva): self
  197.     {
  198.         $this->tva $tva;
  199.         return $this;
  200.     }
  201.     public function getProduitDeclinationValue(): ?ProduitDeclinationValue
  202.     {
  203.         return $this->produitDeclinationValue;
  204.     }
  205.     public function setProduitDeclinationValue(?ProduitDeclinationValue $produitDeclinationValue): self
  206.     {
  207.         $this->produitDeclinationValue $produitDeclinationValue;
  208.         return $this;
  209.     }
  210.     public function getDocument(): ?Document
  211.     {
  212.         return $this->document;
  213.     }
  214.     public function setDocument(?Document $document): self
  215.     {
  216.         $this->document $document;
  217.         return $this;
  218.     }
  219.     public function getTotalAmount(): ?float
  220.     {
  221.         return $this->totalAmount;
  222.     }
  223.     public function setTotalAmount(float $totalAmount): self
  224.     {
  225.         $this->totalAmount $totalAmount;
  226.         return $this;
  227.     }
  228. }