src/Entity/Products.php line 11
<?phpnamespace App\Entity;use App\Repository\ProductsRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ProductsRepository::class)]class Products{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(name: 'nameFr', type: 'text')]private ?string $name;#[ORM\Column(name: 'nameBe', type: 'text')]private ?string $nameBe;#[ORM\Column(name: 'description', type: 'text')]private ?string $description;#[ORM\Column(name: 'price', type: 'float')]private ?float $price;#[ORM\Column(name: 'pricePharmacy', type: 'float', nullable: true)]private ?float $pricePharmacy;#[ORM\Column(name: 'capacity', type: 'string', nullable: true)]private ?string $capacity;#[ORM\Column(name: 'quantity', type: 'integer')]private ?int $quantity;#[ORM\Column(name: 'useCouncil', type: 'text', nullable: true)]private ?string $useCouncil;#[ORM\Column(name: 'contraindication', type: 'text', nullable: true)]private ?string $contraindication;#[ORM\Column(name: 'ingredient', type: 'text', nullable: true)]private ?string $ingredient;#[ORM\Column(name: 'nutritionChart', type: 'text', nullable: true)]private ?string $nutritionChart;#[ORM\OneToMany(mappedBy: 'products', targetEntity: 'App\Entity\Barcode')]private ?Collection $barcode;#[ORM\OneToMany(mappedBy: 'products', targetEntity: 'App\Entity\ProductsAnalysis')]private ?Collection $analysis;#[ORM\OneToMany(mappedBy: 'products', targetEntity: Cart::class)]private ?Collection $cart;#[ORM\OneToMany(mappedBy: 'product', targetEntity: SpecialDiscount::class)]private ?Collection $specialDiscount;#[ORM\OneToMany(mappedBy: 'product', targetEntity: ActionShock::class)]private ?Collection $actionShockCalendar;#[ORM\Column(name: 'image', type: 'text', nullable: true)]private ?string $image;#[ORM\Column(name: 'status', type: 'boolean')]private ?bool $status;#[ORM\Column(name: 'tools', type: 'boolean', nullable: true)]private ?bool $tools;#[ORM\Column(name: 'publicPrice', type: 'float')]private ?float $publicPrice;#[ORM\Column(name: 'publicPriceHtva', type: 'float', nullable: true)]private ?float $publicPriceHtva;#[ORM\Column(name: 'consumptionTime', type: 'integer', nullable: true)]private ?int $consumptionTime;#[ORM\Column(name: 'brand', type: 'text', nullable: true)]private ?string $brand;#[ORM\Column(name: 'idOnNaturaSite', type: 'integer', nullable: true)]private ?int $idOnNaturaSite;#[ORM\Column(name: 'idProductFeatureOnNatura', type: 'integer', nullable: true)]private ?int $idProductFeatureOnNatura;#[ORM\Column(name: 'idProductOnMercator', type: 'integer', nullable: true)]private ?int $idProductOnMercator;#[ORM\Column(name: 'reference', type: 'string', nullable: true)]private ?string $reference;#[ORM\Column(name: 'idStockAvailables', type: 'integer', nullable: true)]private ?int $idStockAvailables;#[ORM\OneToMany(mappedBy: 'product', targetEntity: CountryOfSale::class)]private ?Collection $country;#[ORM\Column(name: 'cnk', type: 'string', nullable: true)]private ?string $cnk;#[ORM\Column(name: 'nut', type: 'string', nullable: true)]private ?string $nut;#[ORM\Column(name: 'ean', type: 'string', nullable: true)]private ?string $ean;#[ORM\Column(name: 'eanImage', type: 'string', nullable: true)]private ?string $eanImage;#[ORM\Column(name: 'eanImageBase64', type: 'text', nullable: true)]private ?string $eanImageBase64;#[ORM\OneToMany(mappedBy: 'products', targetEntity: LotNumber::class)]private ?Collection $lotNumber;#[ORM\Column(name: 'tvaBe', type: 'float', nullable: true)]private ?float $tvaBe;#[ORM\Column(name: 'tvaFr', type: 'float', nullable: true)]private ?float $tvaFr;#[ORM\Column(name: 'tvaLu', type: 'float', nullable: true)]private ?float $tvaLu;#[ORM\Column(name: 'saleFr', type: 'boolean', nullable: true)]private ?bool $saleFr;#[ORM\Column(name: 'saleBe', type: 'boolean', nullable: true)]private ?bool $saleBe;#[ORM\Column(name: 'saleLux', type: 'boolean', nullable: true)]private ?bool $saleLux;#[ORM\Column(name: 'actionShock', type: 'boolean', nullable: true, options: ['default' => false])]private ?bool $actionShock = false;public function __construct(){$this->barcode = new ArrayCollection();$this->cart = new ArrayCollection();$this->country = new ArrayCollection();$this->lotNumber = new ArrayCollection();$this->analysis = new ArrayCollection();$this->specialDiscount = new ArrayCollection();$this->actionShockCalendar = new ArrayCollection();}/*** @return float|null*/public function getPublicPriceHtva(): ?float{return $this->publicPriceHtva;}/*** @param float|null $publicPriceHtva*/public function setPublicPriceHtva(?float $publicPriceHtva): void{$this->publicPriceHtva = $publicPriceHtva;}/*** @return Collection|null*/public function getActionShockCalendar(): ?Collection{return $this->actionShockCalendar;}/*** @param Collection|null $actionShockCalendar*/public function setActionShockCalendar(?Collection $actionShockCalendar): void{$this->actionShockCalendar = $actionShockCalendar;}/*** @return Collection|null*/public function getSpecialDiscount(): ?Collection{return $this->specialDiscount;}/*** @param Collection|null $specialDiscount*/public function setSpecialDiscount(?Collection $specialDiscount): void{$this->specialDiscount = $specialDiscount;}/*** @return int|null*/public function getIdProductOnMercator(): ?int{return $this->idProductOnMercator;}/*** @param int|null $idProductOnMercator*/public function setIdProductOnMercator(?int $idProductOnMercator): void{$this->idProductOnMercator = $idProductOnMercator;}/*** @return bool|null*/public function getTools(): ?bool{return $this->tools;}/*** @param bool|null $tools*/public function setTools(?bool $tools): void{$this->tools = $tools;}/*** @return bool|null*/public function getActionShock(): ?bool{return $this->actionShock;}/*** @param bool|null $actionShock*/public function setActionShock(?bool $actionShock): void{$this->actionShock = $actionShock;}/*** @return string|null*/public function getNameBe(): ?string{return $this->nameBe;}/*** @param string|null $nameBe*/public function setNameBe(?string $nameBe): void{$this->nameBe = $nameBe;}/*** @return float|null*/public function getPricePharmacy(): ?float{return $this->pricePharmacy;}/*** @param float|null $pricePharmacy*/public function setPricePharmacy(?float $pricePharmacy): void{$this->pricePharmacy = $pricePharmacy;}/*** @return bool|null*/public function getSaleFr(): ?bool{return $this->saleFr;}/*** @param bool|null $saleFr*/public function setSaleFr(?bool $saleFr): void{$this->saleFr = $saleFr;}/*** @return bool|null*/public function getSaleBe(): ?bool{return $this->saleBe;}/*** @param bool|null $saleBe*/public function setSaleBe(?bool $saleBe): void{$this->saleBe = $saleBe;}/*** @return bool|null*/public function getSaleLux(): ?bool{return $this->saleLux;}/*** @param bool|null $saleLux*/public function setSaleLux(?bool $saleLux): void{$this->saleLux = $saleLux;}/*** @return string|null*/public function getEanImageBase64(): ?string{return $this->eanImageBase64;}/*** @param string|null $eanImageBase64*/public function setEanImageBase64(?string $eanImageBase64): void{$this->eanImageBase64 = $eanImageBase64;}/*** @return string|null*/public function getEanImage(): ?string{return $this->eanImage;}/*** @param string|null $eanImage*/public function setEanImage(?string $eanImage): void{$this->eanImage = $eanImage;}/*** @return string|null*/public function getCapacity(): ?string{return $this->capacity;}/*** @param string|null $capacity*/public function setCapacity(?string $capacity): void{$this->capacity = $capacity;}/*** @return int|null*/public function getIdProductFeatureOnNatura(): ?int{return $this->idProductFeatureOnNatura;}/*** @param int|null $idProductFeatureOnNatura*/public function setIdProductFeatureOnNatura(?int $idProductFeatureOnNatura): void{$this->idProductFeatureOnNatura = $idProductFeatureOnNatura;}/*** @return string|null*/public function getEan(): ?string{return $this->ean;}/*** @param string|null $ean*/public function setEan(?string $ean): void{$this->ean = $ean;}/*** @return Collection|null*/public function getAnalysis(): ?Collection{return $this->analysis;}/*** @param Collection|null $analysis*/public function setAnalysis(?Collection $analysis): void{$this->analysis = $analysis;}/*** @return float|null*/public function getTvaBe(): ?float{return $this->tvaBe;}/*** @param float|null $tvaBe*/public function setTvaBe(?float $tvaBe): void{$this->tvaBe = $tvaBe;}/*** @return float|null*/public function getTvaFr(): ?float{return $this->tvaFr;}/*** @param float|null $tvaFr*/public function setTvaFr(?float $tvaFr): void{$this->tvaFr = $tvaFr;}/*** @return float|null*/public function getTvaLu(): ?float{return $this->tvaLu;}/*** @param float|null $tvaLu*/public function setTvaLu(?float $tvaLu): void{$this->tvaLu = $tvaLu;}/*** @return float|null*/public function getTva(): ?float{return $this->tva;}/*** @param float|null $tva*/public function setTva(?float $tva): void{$this->tva = $tva;}/*** @return Collection|null*/public function getLotNumber(): ?Collection{return $this->lotNumber;}/*** @param Collection|null $lotNumber*/public function setLotNumber(?Collection $lotNumber): void{$this->lotNumber = $lotNumber;}/*** @return string|null*/public function getCnk(): ?string{return $this->cnk;}/*** @param string|null $cnk*/public function setCnk(?string $cnk): void{$this->cnk = $cnk;}/*** @return string|null*/public function getNut(): ?string{return $this->nut;}/*** @param string|null $nut*/public function setNut(?string $nut): void{$this->nut = $nut;}/*** @return Collection|null*/public function getCountry(): ?Collection{return $this->country;}/*** @param Collection|null $country*/public function setCountry(?Collection $country): void{$this->country = $country;}/*** @return int|null*/public function getIdStockAvailables(): ?int{return $this->idStockAvailables;}/*** @param int|null $idStockAvailables*/public function setIdStockAvailables(?int $idStockAvailables): void{$this->idStockAvailables = $idStockAvailables;}/*** @return string|null*/public function getReference(): ?string{return $this->reference;}/*** @param string|null $reference*/public function setReference(?string $reference): void{$this->reference = $reference;}/*** @return int|null*/public function getIdOnNaturaSite(): ?int{return $this->idOnNaturaSite;}/*** @param int|null $idOnNaturaSite*/public function setIdOnNaturaSite(?int $idOnNaturaSite): void{$this->idOnNaturaSite = $idOnNaturaSite;}/*** @return string|null*/public function getBrand(): ?string{return $this->brand;}/*** @param string|null $brand*/public function setBrand(?string $brand): void{$this->brand = $brand;}/*** @return int|null*/public function getConsumptionTime(): ?int{return $this->consumptionTime;}/*** @param int|null $consumptionTime*/public function setConsumptionTime(?int $consumptionTime): void{$this->consumptionTime = $consumptionTime;}/*** @return float|null*/public function getPublicPrice(): ?float{return $this->publicPrice;}/*** @param float|null $publicPrice*/public function setPublicPrice(?float $publicPrice): void{$this->publicPrice = $publicPrice;}/*** @return bool|null*/public function getStatus(): ?bool{return $this->status;}/*** @param bool|null $status*/public function setStatus(?bool $status): void{$this->status = $status;}/*** @return string|null*/public function getImage(): ?string{return $this->image;}/*** @param string|null $image*/public function setImage(?string $image): void{$this->image = $image;}/*** @return Collection|null*/public function getCart(): ?Collection{return $this->cart;}/*** @param Collection|null $cart*/public function setCart(?Collection $cart): void{$this->cart = $cart;}/*** @return Collection|null*/public function getBarcode(): ?Collection{return $this->barcode;}/*** @param Collection|null $barcode*/public function setBarcode(?Collection $barcode): void{$this->barcode = $barcode;}/*** @return string|null*/public function getName(): ?string{return $this->name;}/*** @param string|null $name*/public function setName(?string $name): void{$this->name = $name;}/*** @return string|null*/public function getDescription(): ?string{return $this->description;}/*** @param string|null $description*/public function setDescription(?string $description): void{$this->description = $description;}/*** @return float|null*/public function getPrice(): ?float{return $this->price;}/*** @param float|null $price*/public function setPrice(?float $price): void{$this->price = $price;}/*** @return int|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 getUseCouncil(): ?string{return $this->useCouncil;}/*** @param string|null $useCouncil*/public function setUseCouncil(?string $useCouncil): void{$this->useCouncil = $useCouncil;}/*** @return string|null*/public function getContraindication(): ?string{return $this->contraindication;}/*** @param string|null $contraindication*/public function setContraindication(?string $contraindication): void{$this->contraindication = $contraindication;}/*** @return string|null*/public function getIngredient(): ?string{return $this->ingredient;}/*** @param string|null $ingredient*/public function setIngredient(?string $ingredient): void{$this->ingredient = $ingredient;}/*** @return string|null*/public function getNutritionChart(): ?string{return $this->nutritionChart;}/*** @param string|null $nutritionChart*/public function setNutritionChart(?string $nutritionChart): void{$this->nutritionChart = $nutritionChart;}public function getId(): ?int{return $this->id;}public function __toString(){return $this->name;}}