src/Entity/Products.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductsRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassProductsRepository::class)]
  8. class Products
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(name'nameFr'type'text')]
  15.     private ?string $name;
  16.     #[ORM\Column(name'nameBe'type'text')]
  17.     private ?string $nameBe;
  18.     #[ORM\Column(name'description'type'text')]
  19.     private ?string $description;
  20.     #[ORM\Column(name'price'type'float')]
  21.     private ?float $price;
  22.     #[ORM\Column(name'pricePharmacy'type'float'nullabletrue)]
  23.     private ?float $pricePharmacy;
  24.     #[ORM\Column(name'capacity'type'string'nullabletrue)]
  25.     private ?string $capacity;
  26.     #[ORM\Column(name'quantity'type'integer')]
  27.     private ?int $quantity;
  28.     #[ORM\Column(name'useCouncil'type'text'nullabletrue)]
  29.     private ?string $useCouncil;
  30.     #[ORM\Column(name'contraindication'type'text'nullabletrue)]
  31.     private ?string $contraindication;
  32.     #[ORM\Column(name'ingredient'type'text'nullabletrue)]
  33.     private ?string $ingredient;
  34.     #[ORM\Column(name'nutritionChart'type'text'nullabletrue)]
  35.     private ?string $nutritionChart;
  36.     #[ORM\OneToMany(mappedBy'products'targetEntity'App\Entity\Barcode')]
  37.     private ?Collection $barcode;
  38.     #[ORM\OneToMany(mappedBy'products'targetEntity'App\Entity\ProductsAnalysis')]
  39.     private ?Collection $analysis;
  40.     #[ORM\OneToMany(mappedBy'products'targetEntityCart::class)]
  41.     private ?Collection $cart;
  42.     #[ORM\OneToMany(mappedBy'product'targetEntitySpecialDiscount::class)]
  43.     private ?Collection $specialDiscount;
  44.     #[ORM\OneToMany(mappedBy'product'targetEntityActionShock::class)]
  45.     private ?Collection $actionShockCalendar;
  46.     #[ORM\Column(name'image'type'text'nullabletrue)]
  47.     private ?string $image;
  48.     #[ORM\Column(name'status'type'boolean')]
  49.     private ?bool $status;
  50.     #[ORM\Column(name'tools'type'boolean'nullabletrue)]
  51.     private ?bool $tools;
  52.     #[ORM\Column(name'publicPrice'type'float')]
  53.     private ?float $publicPrice;
  54.     #[ORM\Column(name'publicPriceHtva'type'float'nullabletrue)]
  55.     private ?float $publicPriceHtva;
  56.     #[ORM\Column(name'consumptionTime'type'integer'nullabletrue)]
  57.     private ?int $consumptionTime;
  58.     #[ORM\Column(name'brand'type'text'nullabletrue)]
  59.     private ?string $brand;
  60.     #[ORM\Column(name'idOnNaturaSite'type'integer'nullabletrue)]
  61.     private ?int $idOnNaturaSite;
  62.     #[ORM\Column(name'idProductFeatureOnNatura'type'integer'nullabletrue)]
  63.     private ?int $idProductFeatureOnNatura;
  64.     #[ORM\Column(name'idProductOnMercator'type'integer'nullabletrue)]
  65.     private ?int $idProductOnMercator;
  66.     #[ORM\Column(name'reference'type'string'nullabletrue)]
  67.     private ?string $reference;
  68.     #[ORM\Column(name'idStockAvailables'type'integer'nullabletrue)]
  69.     private ?int $idStockAvailables;
  70.     #[ORM\OneToMany(mappedBy'product'targetEntityCountryOfSale::class)]
  71.     private ?Collection $country;
  72.     #[ORM\Column(name'cnk'type'string'nullabletrue)]
  73.     private ?string $cnk;
  74.     #[ORM\Column(name'nut'type'string'nullabletrue)]
  75.     private ?string $nut;
  76.     #[ORM\Column(name'ean'type'string'nullabletrue)]
  77.     private ?string $ean;
  78.     #[ORM\Column(name'eanImage'type'string'nullabletrue)]
  79.     private ?string $eanImage;
  80.     #[ORM\Column(name'eanImageBase64'type'text'nullabletrue)]
  81.     private ?string $eanImageBase64;
  82.     #[ORM\OneToMany(mappedBy'products'targetEntityLotNumber::class)]
  83.     private ?Collection $lotNumber;
  84.     #[ORM\Column(name'tvaBe'type'float'nullabletrue)]
  85.     private ?float $tvaBe;
  86.     #[ORM\Column(name'tvaFr'type'float'nullabletrue)]
  87.     private ?float $tvaFr;
  88.     #[ORM\Column(name'tvaLu'type'float'nullabletrue)]
  89.     private ?float $tvaLu;
  90.     #[ORM\Column(name'saleFr'type'boolean'nullabletrue)]
  91.     private ?bool $saleFr;
  92.     #[ORM\Column(name'saleBe'type'boolean'nullabletrue)]
  93.     private ?bool $saleBe;
  94.     #[ORM\Column(name'saleLux'type'boolean'nullabletrue)]
  95.     private ?bool $saleLux;
  96.     #[ORM\Column(name'actionShock'type'boolean'nullabletrueoptions: ['default' => false])]
  97.     private ?bool $actionShock false;
  98.     public function __construct()
  99.     {
  100.         $this->barcode = new ArrayCollection();
  101.         $this->cart = new ArrayCollection();
  102.         $this->country = new ArrayCollection();
  103.         $this->lotNumber = new ArrayCollection();
  104.         $this->analysis = new ArrayCollection();
  105.         $this->specialDiscount = new ArrayCollection();
  106.         $this->actionShockCalendar = new ArrayCollection();
  107.     }
  108.     /**
  109.      * @return float|null
  110.      */
  111.     public function getPublicPriceHtva(): ?float
  112.     {
  113.         return $this->publicPriceHtva;
  114.     }
  115.     /**
  116.      * @param float|null $publicPriceHtva
  117.      */
  118.     public function setPublicPriceHtva(?float $publicPriceHtva): void
  119.     {
  120.         $this->publicPriceHtva $publicPriceHtva;
  121.     }
  122.     /**
  123.      * @return Collection|null
  124.      */
  125.     public function getActionShockCalendar(): ?Collection
  126.     {
  127.         return $this->actionShockCalendar;
  128.     }
  129.     /**
  130.      * @param Collection|null $actionShockCalendar
  131.      */
  132.     public function setActionShockCalendar(?Collection $actionShockCalendar): void
  133.     {
  134.         $this->actionShockCalendar $actionShockCalendar;
  135.     }
  136.     /**
  137.      * @return Collection|null
  138.      */
  139.     public function getSpecialDiscount(): ?Collection
  140.     {
  141.         return $this->specialDiscount;
  142.     }
  143.     /**
  144.      * @param Collection|null $specialDiscount
  145.      */
  146.     public function setSpecialDiscount(?Collection $specialDiscount): void
  147.     {
  148.         $this->specialDiscount $specialDiscount;
  149.     }
  150.     /**
  151.      * @return int|null
  152.      */
  153.     public function getIdProductOnMercator(): ?int
  154.     {
  155.         return $this->idProductOnMercator;
  156.     }
  157.     /**
  158.      * @param int|null $idProductOnMercator
  159.      */
  160.     public function setIdProductOnMercator(?int $idProductOnMercator): void
  161.     {
  162.         $this->idProductOnMercator $idProductOnMercator;
  163.     }
  164.     /**
  165.      * @return bool|null
  166.      */
  167.     public function getTools(): ?bool
  168.     {
  169.         return $this->tools;
  170.     }
  171.     /**
  172.      * @param bool|null $tools
  173.      */
  174.     public function setTools(?bool $tools): void
  175.     {
  176.         $this->tools $tools;
  177.     }
  178.     /**
  179.      * @return bool|null
  180.      */
  181.     public function getActionShock(): ?bool
  182.     {
  183.         return $this->actionShock;
  184.     }
  185.     /**
  186.      * @param bool|null $actionShock
  187.      */
  188.     public function setActionShock(?bool $actionShock): void
  189.     {
  190.         $this->actionShock $actionShock;
  191.     }
  192.     /**
  193.      * @return string|null
  194.      */
  195.     public function getNameBe(): ?string
  196.     {
  197.         return $this->nameBe;
  198.     }
  199.     /**
  200.      * @param string|null $nameBe
  201.      */
  202.     public function setNameBe(?string $nameBe): void
  203.     {
  204.         $this->nameBe $nameBe;
  205.     }
  206.     /**
  207.      * @return float|null
  208.      */
  209.     public function getPricePharmacy(): ?float
  210.     {
  211.         return $this->pricePharmacy;
  212.     }
  213.     /**
  214.      * @param float|null $pricePharmacy
  215.      */
  216.     public function setPricePharmacy(?float $pricePharmacy): void
  217.     {
  218.         $this->pricePharmacy $pricePharmacy;
  219.     }
  220.     /**
  221.      * @return bool|null
  222.      */
  223.     public function getSaleFr(): ?bool
  224.     {
  225.         return $this->saleFr;
  226.     }
  227.     /**
  228.      * @param bool|null $saleFr
  229.      */
  230.     public function setSaleFr(?bool $saleFr): void
  231.     {
  232.         $this->saleFr $saleFr;
  233.     }
  234.     /**
  235.      * @return bool|null
  236.      */
  237.     public function getSaleBe(): ?bool
  238.     {
  239.         return $this->saleBe;
  240.     }
  241.     /**
  242.      * @param bool|null $saleBe
  243.      */
  244.     public function setSaleBe(?bool $saleBe): void
  245.     {
  246.         $this->saleBe $saleBe;
  247.     }
  248.     /**
  249.      * @return bool|null
  250.      */
  251.     public function getSaleLux(): ?bool
  252.     {
  253.         return $this->saleLux;
  254.     }
  255.     /**
  256.      * @param bool|null $saleLux
  257.      */
  258.     public function setSaleLux(?bool $saleLux): void
  259.     {
  260.         $this->saleLux $saleLux;
  261.     }
  262.     /**
  263.      * @return string|null
  264.      */
  265.     public function getEanImageBase64(): ?string
  266.     {
  267.         return $this->eanImageBase64;
  268.     }
  269.     /**
  270.      * @param string|null $eanImageBase64
  271.      */
  272.     public function setEanImageBase64(?string $eanImageBase64): void
  273.     {
  274.         $this->eanImageBase64 $eanImageBase64;
  275.     }
  276.     /**
  277.      * @return string|null
  278.      */
  279.     public function getEanImage(): ?string
  280.     {
  281.         return $this->eanImage;
  282.     }
  283.     /**
  284.      * @param string|null $eanImage
  285.      */
  286.     public function setEanImage(?string $eanImage): void
  287.     {
  288.         $this->eanImage $eanImage;
  289.     }
  290.     /**
  291.      * @return string|null
  292.      */
  293.     public function getCapacity(): ?string
  294.     {
  295.         return $this->capacity;
  296.     }
  297.     /**
  298.      * @param string|null $capacity
  299.      */
  300.     public function setCapacity(?string $capacity): void
  301.     {
  302.         $this->capacity $capacity;
  303.     }
  304.     /**
  305.      * @return int|null
  306.      */
  307.     public function getIdProductFeatureOnNatura(): ?int
  308.     {
  309.         return $this->idProductFeatureOnNatura;
  310.     }
  311.     /**
  312.      * @param int|null $idProductFeatureOnNatura
  313.      */
  314.     public function setIdProductFeatureOnNatura(?int $idProductFeatureOnNatura): void
  315.     {
  316.         $this->idProductFeatureOnNatura $idProductFeatureOnNatura;
  317.     }
  318.     /**
  319.      * @return string|null
  320.      */
  321.     public function getEan(): ?string
  322.     {
  323.         return $this->ean;
  324.     }
  325.     /**
  326.      * @param string|null $ean
  327.      */
  328.     public function setEan(?string $ean): void
  329.     {
  330.         $this->ean $ean;
  331.     }
  332.     /**
  333.      * @return Collection|null
  334.      */
  335.     public function getAnalysis(): ?Collection
  336.     {
  337.         return $this->analysis;
  338.     }
  339.     /**
  340.      * @param Collection|null $analysis
  341.      */
  342.     public function setAnalysis(?Collection $analysis): void
  343.     {
  344.         $this->analysis $analysis;
  345.     }
  346.     /**
  347.      * @return float|null
  348.      */
  349.     public function getTvaBe(): ?float
  350.     {
  351.         return $this->tvaBe;
  352.     }
  353.     /**
  354.      * @param float|null $tvaBe
  355.      */
  356.     public function setTvaBe(?float $tvaBe): void
  357.     {
  358.         $this->tvaBe $tvaBe;
  359.     }
  360.     /**
  361.      * @return float|null
  362.      */
  363.     public function getTvaFr(): ?float
  364.     {
  365.         return $this->tvaFr;
  366.     }
  367.     /**
  368.      * @param float|null $tvaFr
  369.      */
  370.     public function setTvaFr(?float $tvaFr): void
  371.     {
  372.         $this->tvaFr $tvaFr;
  373.     }
  374.     /**
  375.      * @return float|null
  376.      */
  377.     public function getTvaLu(): ?float
  378.     {
  379.         return $this->tvaLu;
  380.     }
  381.     /**
  382.      * @param float|null $tvaLu
  383.      */
  384.     public function setTvaLu(?float $tvaLu): void
  385.     {
  386.         $this->tvaLu $tvaLu;
  387.     }
  388.     /**
  389.      * @return float|null
  390.      */
  391.     public function getTva(): ?float
  392.     {
  393.         return $this->tva;
  394.     }
  395.     /**
  396.      * @param float|null $tva
  397.      */
  398.     public function setTva(?float $tva): void
  399.     {
  400.         $this->tva $tva;
  401.     }
  402.     /**
  403.      * @return Collection|null
  404.      */
  405.     public function getLotNumber(): ?Collection
  406.     {
  407.         return $this->lotNumber;
  408.     }
  409.     /**
  410.      * @param Collection|null $lotNumber
  411.      */
  412.     public function setLotNumber(?Collection $lotNumber): void
  413.     {
  414.         $this->lotNumber $lotNumber;
  415.     }
  416.     /**
  417.      * @return string|null
  418.      */
  419.     public function getCnk(): ?string
  420.     {
  421.         return $this->cnk;
  422.     }
  423.     /**
  424.      * @param string|null $cnk
  425.      */
  426.     public function setCnk(?string $cnk): void
  427.     {
  428.         $this->cnk $cnk;
  429.     }
  430.     /**
  431.      * @return string|null
  432.      */
  433.     public function getNut(): ?string
  434.     {
  435.         return $this->nut;
  436.     }
  437.     /**
  438.      * @param string|null $nut
  439.      */
  440.     public function setNut(?string $nut): void
  441.     {
  442.         $this->nut $nut;
  443.     }
  444.     /**
  445.      * @return Collection|null
  446.      */
  447.     public function getCountry(): ?Collection
  448.     {
  449.         return $this->country;
  450.     }
  451.     /**
  452.      * @param Collection|null $country
  453.      */
  454.     public function setCountry(?Collection $country): void
  455.     {
  456.         $this->country $country;
  457.     }
  458.     /**
  459.      * @return int|null
  460.      */
  461.     public function getIdStockAvailables(): ?int
  462.     {
  463.         return $this->idStockAvailables;
  464.     }
  465.     /**
  466.      * @param int|null $idStockAvailables
  467.      */
  468.     public function setIdStockAvailables(?int $idStockAvailables): void
  469.     {
  470.         $this->idStockAvailables $idStockAvailables;
  471.     }
  472.     /**
  473.      * @return string|null
  474.      */
  475.     public function getReference(): ?string
  476.     {
  477.         return $this->reference;
  478.     }
  479.     /**
  480.      * @param string|null $reference
  481.      */
  482.     public function setReference(?string $reference): void
  483.     {
  484.         $this->reference $reference;
  485.     }
  486.     /**
  487.      * @return int|null
  488.      */
  489.     public function getIdOnNaturaSite(): ?int
  490.     {
  491.         return $this->idOnNaturaSite;
  492.     }
  493.     /**
  494.      * @param int|null $idOnNaturaSite
  495.      */
  496.     public function setIdOnNaturaSite(?int $idOnNaturaSite): void
  497.     {
  498.         $this->idOnNaturaSite $idOnNaturaSite;
  499.     }
  500.     /**
  501.      * @return string|null
  502.      */
  503.     public function getBrand(): ?string
  504.     {
  505.         return $this->brand;
  506.     }
  507.     /**
  508.      * @param string|null $brand
  509.      */
  510.     public function setBrand(?string $brand): void
  511.     {
  512.         $this->brand $brand;
  513.     }
  514.     /**
  515.      * @return int|null
  516.      */
  517.     public function getConsumptionTime(): ?int
  518.     {
  519.         return $this->consumptionTime;
  520.     }
  521.     /**
  522.      * @param int|null $consumptionTime
  523.      */
  524.     public function setConsumptionTime(?int $consumptionTime): void
  525.     {
  526.         $this->consumptionTime $consumptionTime;
  527.     }
  528.     /**
  529.      * @return float|null
  530.      */
  531.     public function getPublicPrice(): ?float
  532.     {
  533.         return $this->publicPrice;
  534.     }
  535.     /**
  536.      * @param float|null $publicPrice
  537.      */
  538.     public function setPublicPrice(?float $publicPrice): void
  539.     {
  540.         $this->publicPrice $publicPrice;
  541.     }
  542.     /**
  543.      * @return bool|null
  544.      */
  545.     public function getStatus(): ?bool
  546.     {
  547.         return $this->status;
  548.     }
  549.     /**
  550.      * @param bool|null $status
  551.      */
  552.     public function setStatus(?bool $status): void
  553.     {
  554.         $this->status $status;
  555.     }
  556.     /**
  557.      * @return string|null
  558.      */
  559.     public function getImage(): ?string
  560.     {
  561.         return $this->image;
  562.     }
  563.     /**
  564.      * @param string|null $image
  565.      */
  566.     public function setImage(?string $image): void
  567.     {
  568.         $this->image $image;
  569.     }
  570.     /**
  571.      * @return Collection|null
  572.      */
  573.     public function getCart(): ?Collection
  574.     {
  575.         return $this->cart;
  576.     }
  577.     /**
  578.      * @param Collection|null $cart
  579.      */
  580.     public function setCart(?Collection $cart): void
  581.     {
  582.         $this->cart $cart;
  583.     }
  584.     /**
  585.      * @return Collection|null
  586.      */
  587.     public function getBarcode(): ?Collection
  588.     {
  589.         return $this->barcode;
  590.     }
  591.     /**
  592.      * @param Collection|null $barcode
  593.      */
  594.     public function setBarcode(?Collection $barcode): void
  595.     {
  596.         $this->barcode $barcode;
  597.     }
  598.     /**
  599.      * @return string|null
  600.      */
  601.     public function getName(): ?string
  602.     {
  603.         return $this->name;
  604.     }
  605.     /**
  606.      * @param string|null $name
  607.      */
  608.     public function setName(?string $name): void
  609.     {
  610.         $this->name $name;
  611.     }
  612.     /**
  613.      * @return string|null
  614.      */
  615.     public function getDescription(): ?string
  616.     {
  617.         return $this->description;
  618.     }
  619.     /**
  620.      * @param string|null $description
  621.      */
  622.     public function setDescription(?string $description): void
  623.     {
  624.         $this->description $description;
  625.     }
  626.     /**
  627.      * @return float|null
  628.      */
  629.     public function getPrice(): ?float
  630.     {
  631.         return $this->price;
  632.     }
  633.     /**
  634.      * @param float|null $price
  635.      */
  636.     public function setPrice(?float $price): void
  637.     {
  638.         $this->price $price;
  639.     }
  640.     /**
  641.      * @return int|null
  642.      */
  643.     public function getQuantity(): ?int
  644.     {
  645.         return $this->quantity;
  646.     }
  647.     /**
  648.      * @param int|null $quantity
  649.      */
  650.     public function setQuantity(?int $quantity): void
  651.     {
  652.         $this->quantity $quantity;
  653.     }
  654.     /**
  655.      * @return string|null
  656.      */
  657.     public function getUseCouncil(): ?string
  658.     {
  659.         return $this->useCouncil;
  660.     }
  661.     /**
  662.      * @param string|null $useCouncil
  663.      */
  664.     public function setUseCouncil(?string $useCouncil): void
  665.     {
  666.         $this->useCouncil $useCouncil;
  667.     }
  668.     /**
  669.      * @return string|null
  670.      */
  671.     public function getContraindication(): ?string
  672.     {
  673.         return $this->contraindication;
  674.     }
  675.     /**
  676.      * @param string|null $contraindication
  677.      */
  678.     public function setContraindication(?string $contraindication): void
  679.     {
  680.         $this->contraindication $contraindication;
  681.     }
  682.     /**
  683.      * @return string|null
  684.      */
  685.     public function getIngredient(): ?string
  686.     {
  687.         return $this->ingredient;
  688.     }
  689.     /**
  690.      * @param string|null $ingredient
  691.      */
  692.     public function setIngredient(?string $ingredient): void
  693.     {
  694.         $this->ingredient $ingredient;
  695.     }
  696.     /**
  697.      * @return string|null
  698.      */
  699.     public function getNutritionChart(): ?string
  700.     {
  701.         return $this->nutritionChart;
  702.     }
  703.     /**
  704.      * @param string|null $nutritionChart
  705.      */
  706.     public function setNutritionChart(?string $nutritionChart): void
  707.     {
  708.         $this->nutritionChart $nutritionChart;
  709.     }
  710.     public function getId(): ?int
  711.     {
  712.         return $this->id;
  713.     }
  714.     public function __toString()
  715.     {
  716.         return $this->name;
  717.     }
  718. }