src/Entity/Articles.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ArticlesRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=ArticlesRepository::class)
  9.  */
  10. class Articles
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", nullable=true)
  20.      */
  21.     private $idPunch null;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $name;
  26.     /**
  27.      * @ORM\Column(type="text", nullable=true)
  28.      */
  29.     private $description null;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $empties null;
  34.     /**
  35.      * @ORM\Column(type="float")
  36.      */
  37.     private $stock 0.0;
  38.     /**
  39.      * @ORM\Column(type="float")
  40.      */
  41.     private $tax 0.0;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity=Establishments::class, inversedBy="articles")
  44.      */
  45.     private $supplier;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $barcode null;
  50.     /**
  51.      * @ORM\Column(type="float")
  52.      */
  53.     private $priceHtva 0.0;
  54.     /**
  55.      * @ORM\Column(type="float")
  56.      */
  57.     private $priceTvac 0.0;
  58.     /**
  59.      * @ORM\Column(type="string", length=255, nullable=true)
  60.      */
  61.     private $intrastatCode null;
  62.     /**
  63.      * @ORM\Column(type="float")
  64.      */
  65.     private $weight 0.0;
  66.     /**
  67.      * @ORM\Column(type="string", length=255, nullable=true)
  68.      */
  69.     private $codeTva null;
  70.     /**
  71.      * @ORM\Column(type="string", length=255, nullable=true)
  72.      */
  73.     private $typeOfPackaging null;
  74.     /**
  75.      * @ORM\Column(type="string", length=255, nullable=true)
  76.      */
  77.     private $accountingType null;
  78.     /**
  79.      * @ORM\Column(type="float", nullable=true)
  80.      */
  81.     private $depositValue null;
  82.     /**
  83.      * @ORM\Column(type="float")
  84.      */
  85.     private $depositValueBottle 0.0;
  86.     /**
  87.      * @ORM\ManyToOne(targetEntity=Units::class, inversedBy="articles")
  88.      */
  89.     private $unit;
  90.     /**
  91.      * @ORM\OneToMany(targetEntity=ShoppingCart::class, mappedBy="article")
  92.      */
  93.     private $shoppingCarts;
  94.     /**
  95.      * @ORM\OneToMany(targetEntity=OrderArticle::class, mappedBy="article")
  96.      */
  97.     private $orderArticles;
  98.     /**
  99.      * @ORM\ManyToMany(targetEntity=DiscountGroups::class, inversedBy="articles")
  100.      */
  101.     private $discountGroups;
  102.     /**
  103.      * @ORM\ManyToMany(targetEntity=ItemGroups::class, inversedBy="articles")
  104.      */
  105.     private $itemGroups;
  106.     /**
  107.      * @ORM\ManyToMany(targetEntity=TagGroups::class, mappedBy="articles")
  108.      */
  109.     private $tagGroups;
  110.     /**
  111.      * @ORM\Column(type="datetime")
  112.      */
  113.     private $createdAt;
  114.     /**
  115.      * @ORM\Column(type="datetime")
  116.      */
  117.     private $updatedAt;
  118.     /**
  119.      * @ORM\OneToMany(targetEntity=TarifsArticle::class, mappedBy="article")
  120.      */
  121.     private $tarifsArticles;
  122.     /**
  123.      * @ORM\Column(type="boolean")
  124.      */
  125.     private $deleted false;
  126.     /**
  127.      * @ORM\Column(type="string", length=5000, nullable=true)
  128.      */
  129.     private $pathImage null;
  130.     /**
  131.      * @ORM\Column(type="float", nullable=true)
  132.      */
  133.     private $weightValue null;
  134.     /**
  135.      * @ORM\Column(type="integer")
  136.      */
  137.     private $maxQuantity 0;
  138.     /**
  139.      * @ORM\Column(type="integer")
  140.      */
  141.     private $minQuantity 0;
  142.     /**
  143.      * @ORM\OneToMany(targetEntity=Favorite::class, mappedBy="Article")
  144.      */
  145.     private $favorites;
  146.     /**
  147.      * @ORM\OneToMany(targetEntity=RestrictionArticle::class, mappedBy="article")
  148.      */
  149.     private $restrictionArticles;
  150.     /**
  151.      * @ORM\Column(type="boolean")
  152.      */
  153.     private $forMobileApp 1;
  154.     /**
  155.      * @ORM\ManyToMany(targetEntity=ChildTags::class, mappedBy="articles")
  156.      */
  157.     private $childTags;
  158.     /**
  159.      * @ORM\OneToMany(targetEntity=Banner::class, mappedBy="article")
  160.      */
  161.     private $banners;
  162.     /**
  163.      * @ORM\OneToMany(targetEntity=Promotions::class, mappedBy="article")
  164.      */
  165.     private $promotions;
  166.     /**
  167.      * @ORM\Column(type="text", nullable=true)
  168.      */
  169.     private $infoTextPunch;
  170.     /**
  171.      * @ORM\Column(type="string", length=255, nullable=true)
  172.      */
  173.     private $webshopPunch;
  174.     /**
  175.      * @ORM\OneToMany(targetEntity=RelationArticles::class, mappedBy="parentArticle")
  176.      */
  177.     private $relationArticleParent;
  178.     /**
  179.      * @ORM\OneToMany(targetEntity=RelationArticles::class, mappedBy="childArticle")
  180.      */
  181.     private $realtionArticleChild;
  182.     /**
  183.      * @ORM\OneToMany(targetEntity=ArticleOrderOutOfStock::class, mappedBy="article")
  184.      */
  185.     private $articleOrderOutOfStocks;
  186.     /**
  187.      * @ORM\ManyToMany(targetEntity=FilterChild::class, mappedBy="article")
  188.      */
  189.     private $filterChildren;
  190.     /**
  191.      * @ORM\Column(type="boolean")
  192.      */
  193.     private $newArticle 1;
  194.     /**
  195.      * @ORM\OneToMany(targetEntity=PromotionItem::class, mappedBy="article")
  196.      */
  197.     private $promotionItems;
  198.     /**
  199.      * @ORM\OneToMany(targetEntity=NewArticle::class, mappedBy="article")
  200.      */
  201.     private $newArticles;
  202.     /**
  203.      * @ORM\Column(type="integer")
  204.      */
  205.     private $numberOfArticle 1;
  206.     /**
  207.      * @ORM\Column(type="boolean")
  208.      */
  209.     private $modifiedVisibility;
  210.     /**
  211.      * @ORM\OneToMany(targetEntity=BackOrder::class, mappedBy="article")
  212.      */
  213.     private $backOrders;
  214.     /**
  215.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="articles")
  216.      */
  217.     private $visibleBy null;
  218.     /**
  219.      * @ORM\Column(type="boolean")
  220.      */
  221.     private $modifyQuantity false;
  222.     public function __construct()
  223.     {
  224.         $this->updatedAt = New \DateTime();
  225.         $this->createdAt = New \DateTime();
  226.         $this->shoppingCarts = new ArrayCollection();
  227.         $this->orderArticles = new ArrayCollection();
  228.         $this->discountGroups = new ArrayCollection();
  229.         $this->itemGroups = new ArrayCollection();
  230.         $this->tagGroups = new ArrayCollection();
  231.         $this->tarifsArticles = new ArrayCollection();
  232.         $this->favorites = new ArrayCollection();
  233.         $this->restrictionArticles = new ArrayCollection();
  234.         $this->childTags = new ArrayCollection();
  235.         $this->banners = new ArrayCollection();
  236.         $this->promotions = new ArrayCollection();
  237.         $this->relationArticleParent = new ArrayCollection();
  238.         $this->realtionArticleChild = new ArrayCollection();
  239.         $this->articleOrderOutOfStocks = new ArrayCollection();
  240.         $this->filterChildren = new ArrayCollection();
  241.         $this->promotionItems = new ArrayCollection();
  242.         $this->newArticles = new ArrayCollection();
  243.         $this->backOrders = new ArrayCollection();
  244.     }
  245.     public function getId(): ?int
  246.     {
  247.         return $this->id;
  248.     }
  249.     public function getIdPunch(): ?string
  250.     {
  251.         return $this->idPunch;
  252.     }
  253.     public function setIdPunch(?string $idPunch): self
  254.     {
  255.         $this->idPunch $idPunch;
  256.         return $this;
  257.     }
  258.     public function getName(): ?string
  259.     {
  260.         return $this->name;
  261.     }
  262.     public function setName(string $name): self
  263.     {
  264.         $this->name $name;
  265.         return $this;
  266.     }
  267.     public function getDescription(): ?string
  268.     {
  269.         // return $this->description;
  270.         return $this->infoTextPunch;
  271.     }
  272.     public function setDescription(?string $description): self
  273.     {
  274.         $this->description $description;
  275.         return $this;
  276.     }
  277.     public function getEmpties(): ?string
  278.     {
  279.         return $this->empties;
  280.     }
  281.     public function setEmpties(?string $empties): self
  282.     {
  283.         $this->empties $empties;
  284.         return $this;
  285.     }
  286.     public function getStock(): ?float
  287.     {
  288.         return $this->stock;
  289.     }
  290.     public function setStock(float $stock): self
  291.     {
  292.         $this->stock $stock;
  293.         return $this;
  294.     }
  295.     public function getTax(): ?float
  296.     {
  297.         return $this->tax;
  298.     }
  299.     public function setTax(float $tax): self
  300.     {
  301.         $this->tax $tax;
  302.         return $this;
  303.     }
  304.     public function getSupplier(): ?Establishments
  305.     {
  306.         return $this->supplier;
  307.     }
  308.     public function setSupplier(?Establishments $supplier): self
  309.     {
  310.         $this->supplier $supplier;
  311.         return $this;
  312.     }
  313.     public function getBarcode(): ?string
  314.     {
  315.         return $this->barcode;
  316.     }
  317.     public function setBarcode(?string $barcode): self
  318.     {
  319.         $this->barcode $barcode;
  320.         return $this;
  321.     }
  322.     public function getPriceHtva(): ?float
  323.     {
  324.         return $this->priceHtva;
  325.     }
  326.     public function setPriceHtva(float $priceHtva): self
  327.     {
  328.         $this->priceHtva $priceHtva;
  329.         return $this;
  330.     }
  331.     public function getPriceTvac(): ?float
  332.     {
  333.         return $this->priceTvac;
  334.     }
  335.     public function setPriceTvac(float $priceTvac): self
  336.     {
  337.         $this->priceTvac $priceTvac;
  338.         return $this;
  339.     }
  340.     public function getIntrastatCode(): ?string
  341.     {
  342.         return $this->intrastatCode;
  343.     }
  344.     public function setIntrastatCode(?string $intrastatCode): self
  345.     {
  346.         $this->intrastatCode $intrastatCode;
  347.         return $this;
  348.     }
  349.     public function getWeight(): ?float
  350.     {
  351.         return $this->weight;
  352.     }
  353.     public function setWeight(float $weight): self
  354.     {
  355.         $this->weight $weight;
  356.         return $this;
  357.     }
  358.     public function getCodeTva(): ?string
  359.     {
  360.         return $this->codeTva;
  361.     }
  362.     public function setCodeTva(?string $codeTva): self
  363.     {
  364.         $this->codeTva $codeTva;
  365.         return $this;
  366.     }
  367.     public function getTypeOfPackaging(): ?string
  368.     {
  369.         return $this->typeOfPackaging;
  370.     }
  371.     public function setTypeOfPackaging(?string $typeOfPackaging): self
  372.     {
  373.         $this->typeOfPackaging $typeOfPackaging;
  374.         return $this;
  375.     }
  376.     public function getAccountingType(): ?string
  377.     {
  378.         return $this->accountingType;
  379.     }
  380.     public function setAccountingType(?string $accountingType): self
  381.     {
  382.         $this->accountingType $accountingType;
  383.         return $this;
  384.     }
  385.     public function getDepositValue(): ?float
  386.     {
  387.         return $this->depositValue;
  388.     }
  389.     public function setDepositValue(?float $depositValue): self
  390.     {
  391.         $this->depositValue $depositValue;
  392.         return $this;
  393.     }
  394.     public function getDepositValueBottle(): ?float
  395.     {
  396.         return $this->depositValueBottle;
  397.     }
  398.     public function setDepositValueBottle(float $depositValueBottle): self
  399.     {
  400.         $this->depositValueBottle $depositValueBottle;
  401.         return $this;
  402.     }
  403.     public function getUnit(): ?Units
  404.     {
  405.         return $this->unit;
  406.     }
  407.     public function setUnit(?Units $unit): self
  408.     {
  409.         $this->unit $unit;
  410.         return $this;
  411.     }
  412.     /**
  413.      * @return Collection<int, ShoppingCart>
  414.      */
  415.     public function getShoppingCarts(): Collection
  416.     {
  417.         return $this->shoppingCarts;
  418.     }
  419.     public function addShoppingCart(ShoppingCart $shoppingCart): self
  420.     {
  421.         if (!$this->shoppingCarts->contains($shoppingCart)) {
  422.             $this->shoppingCarts[] = $shoppingCart;
  423.             $shoppingCart->setArticle($this);
  424.         }
  425.         return $this;
  426.     }
  427.     public function removeShoppingCart(ShoppingCart $shoppingCart): self
  428.     {
  429.         if ($this->shoppingCarts->removeElement($shoppingCart)) {
  430.             // set the owning side to null (unless already changed)
  431.             if ($shoppingCart->getArticle() === $this) {
  432.                 $shoppingCart->setArticle(null);
  433.             }
  434.         }
  435.         return $this;
  436.     }
  437.     /**
  438.      * @return Collection<int, OrderArticle>
  439.      */
  440.     public function getOrderArticles(): Collection
  441.     {
  442.         return $this->orderArticles;
  443.     }
  444.     public function addOrderArticle(OrderArticle $orderArticle): self
  445.     {
  446.         if (!$this->orderArticles->contains($orderArticle)) {
  447.             $this->orderArticles[] = $orderArticle;
  448.             $orderArticle->setArticle($this);
  449.         }
  450.         return $this;
  451.     }
  452.     public function removeOrderArticle(OrderArticle $orderArticle): self
  453.     {
  454.         if ($this->orderArticles->removeElement($orderArticle)) {
  455.             // set the owning side to null (unless already changed)
  456.             if ($orderArticle->getArticle() === $this) {
  457.                 $orderArticle->setArticle(null);
  458.             }
  459.         }
  460.         return $this;
  461.     }
  462.     /**
  463.      * @return Collection<int, DiscountGroups>
  464.      */
  465.     public function getDiscountGroups(): Collection
  466.     {
  467.         return $this->discountGroups;
  468.     }
  469.     public function addDiscountGroup(DiscountGroups $discountGroup): self
  470.     {
  471.         if (!$this->discountGroups->contains($discountGroup)) {
  472.             $this->discountGroups[] = $discountGroup;
  473.         }
  474.         return $this;
  475.     }
  476.     public function removeDiscountGroup(DiscountGroups $discountGroup): self
  477.     {
  478.         $this->discountGroups->removeElement($discountGroup);
  479.         return $this;
  480.     }
  481.     /**
  482.      * @return Collection<int, ItemGroups>
  483.      */
  484.     public function getItemGroups(): Collection
  485.     {
  486.         return $this->itemGroups;
  487.     }
  488.     public function addItemGroup(ItemGroups $itemGroup): self
  489.     {
  490.         if (!$this->itemGroups->contains($itemGroup)) {
  491.             $this->itemGroups[] = $itemGroup;
  492.         }
  493.         return $this;
  494.     }
  495.     public function removeItemGroup(ItemGroups $itemGroup): self
  496.     {
  497.         $this->itemGroups->removeElement($itemGroup);
  498.         return $this;
  499.     }
  500.     /**
  501.      * @return Collection<int, TagGroups>
  502.      */
  503.     public function getTagGroups(): Collection
  504.     {
  505.         return $this->tagGroups;
  506.     }
  507.     public function addTagGroup(TagGroups $tagGroup): self
  508.     {
  509.         if (!$this->tagGroups->contains($tagGroup)) {
  510.             $this->tagGroups[] = $tagGroup;
  511.             $tagGroup->addArticle($this);
  512.         }
  513.         return $this;
  514.     }
  515.     public function removeTagGroup(TagGroups $tagGroup): self
  516.     {
  517.         if ($this->tagGroups->removeElement($tagGroup)) {
  518.             $tagGroup->removeArticle($this);
  519.         }
  520.         return $this;
  521.     }
  522.     public function getCreatedAt(): ?\DateTimeInterface
  523.     {
  524.         return $this->createdAt;
  525.     }
  526.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  527.     {
  528.         $this->createdAt $createdAt;
  529.         return $this;
  530.     }
  531.     public function getUpdatedAt(): ?\DateTimeInterface
  532.     {
  533.         return $this->updatedAt;
  534.     }
  535.     public function setUpdatedAt(\DateTimeInterface $updatedAt): self
  536.     {
  537.         $this->updatedAt $updatedAt;
  538.         return $this;
  539.     }
  540.     /**
  541.      * @return Collection<int, TarifsArticle>
  542.      */
  543.     public function getTarifsArticles(): Collection
  544.     {
  545.         return $this->tarifsArticles;
  546.     }
  547.     public function addTarifsArticle(TarifsArticle $tarifsArticle): self
  548.     {
  549.         if (!$this->tarifsArticles->contains($tarifsArticle)) {
  550.             $this->tarifsArticles[] = $tarifsArticle;
  551.             $tarifsArticle->setArticle($this);
  552.         }
  553.         return $this;
  554.     }
  555.     public function removeTarifsArticle(TarifsArticle $tarifsArticle): self
  556.     {
  557.         if ($this->tarifsArticles->removeElement($tarifsArticle)) {
  558.             // set the owning side to null (unless already changed)
  559.             if ($tarifsArticle->getArticle() === $this) {
  560.                 $tarifsArticle->setArticle(null);
  561.             }
  562.         }
  563.         return $this;
  564.     }
  565.     public function isDeleted(): ?bool
  566.     {
  567.         return $this->deleted;
  568.     }
  569.     public function setDeleted(bool $deleted): self
  570.     {
  571.         $this->deleted $deleted;
  572.         return $this;
  573.     }
  574.     public function getPathImage(): ?string
  575.     {
  576.         return $this->pathImage;
  577.     }
  578.     public function setPathImage(?string $pathImage): self
  579.     {
  580.         $this->pathImage $pathImage;
  581.         return $this;
  582.     }
  583.     public function getWeightValue(): ?float
  584.     {
  585.         return $this->weightValue;
  586.     }
  587.     public function setWeightValue(?float $weightValue): self
  588.     {
  589.         $this->weightValue $weightValue;
  590.         return $this;
  591.     }
  592.     /**
  593.      * @return Collection<int, Favorite>
  594.      */
  595.     public function getFavorites(): Collection
  596.     {
  597.         return $this->favorites;
  598.     }
  599.     public function addFavorite(Favorite $favorite): self
  600.     {
  601.         if (!$this->favorites->contains($favorite)) {
  602.             $this->favorites[] = $favorite;
  603.             $favorite->setArticle($this);
  604.         }
  605.         return $this;
  606.     }
  607.     public function getMaxQuantity(): ?int
  608.     {
  609.         return $this->maxQuantity;
  610.     }
  611.     public function setMaxQuantity(int $maxQuantity): self
  612.     {
  613.         $this->maxQuantity $maxQuantity;
  614.         return $this;
  615.     }
  616.     public function getminQuantity(): ?int
  617.     {
  618.         return $this->minQuantity;
  619.     }
  620.     public function setminQuantity(int $minQuantity): self
  621.     {
  622.         $this->minQuantity $minQuantity;
  623.         return $this;
  624.     }
  625.     public function removeFavorite(Favorite $favorite): self
  626.     {
  627.         if ($this->favorites->removeElement($favorite)) {
  628.             // set the owning side to null (unless already changed)
  629.             if ($favorite->getArticle() === $this) {
  630.                 $favorite->setArticle(null);
  631.             }
  632.         }
  633.         return $this;
  634.     }
  635.     /**
  636.      * @return Collection<int, RestrictionArticle>
  637.      */
  638.     public function getRestrictionArticles(): Collection
  639.     {
  640.         return $this->restrictionArticles;
  641.     }
  642.     public function addRestrictionArticle(RestrictionArticle $restrictionArticle): self
  643.     {
  644.         if (!$this->restrictionArticles->contains($restrictionArticle)) {
  645.             $this->restrictionArticles[] = $restrictionArticle;
  646.             $restrictionArticle->setArticle($this);
  647.         }
  648.         return $this;
  649.     }
  650.     public function removeRestrictionArticle(RestrictionArticle $restrictionArticle): self
  651.     {
  652.         if ($this->restrictionArticles->removeElement($restrictionArticle)) {
  653.             // set the owning side to null (unless already changed)
  654.             if ($restrictionArticle->getArticle() === $this) {
  655.                 $restrictionArticle->setArticle(null);
  656.             }
  657.         }
  658.         return $this;
  659.     }
  660.     public function isForMobileApp(): ?bool
  661.     {
  662.         return $this->forMobileApp;
  663.     }
  664.     public function setForMobileApp(bool $forMobileApp): self
  665.     {
  666.         $this->forMobileApp $forMobileApp;
  667.         return $this;
  668.     }
  669.     /**
  670.      * @return Collection<int, ChildTags>
  671.      */
  672.     public function getChildTags(): Collection
  673.     {
  674.         return $this->childTags;
  675.     }
  676.     public function addChildTag(ChildTags $childTag): self
  677.     {
  678.         if (!$this->childTags->contains($childTag)) {
  679.             $this->childTags[] = $childTag;
  680.             $childTag->addArticle($this);
  681.         }
  682.         return $this;
  683.     }
  684.     public function removeChildTag(ChildTags $childTag): self
  685.     {
  686.         if ($this->childTags->removeElement($childTag)) {
  687.             $childTag->removeArticle($this);
  688.         }
  689.         return $this;
  690.     }
  691.     /**
  692.      * @return Collection<int, Banner>
  693.      */
  694.     public function getBanners(): Collection
  695.     {
  696.         return $this->banners;
  697.     }
  698.     public function addBanner(Banner $banner): self
  699.     {
  700.         if (!$this->banners->contains($banner)) {
  701.             $this->banners[] = $banner;
  702.             $banner->setArticle($this);
  703.         }
  704.         return $this;
  705.     }
  706.     public function removeBanner(Banner $banner): self
  707.     {
  708.         if ($this->banners->removeElement($banner)) {
  709.             // set the owning side to null (unless already changed)
  710.             if ($banner->getArticle() === $this) {
  711.                 $banner->setArticle(null);
  712.             }
  713.         }
  714.         return $this;
  715.     }
  716.     /**
  717.      * @return Collection<int, Promotions>
  718.      */
  719.     public function getPromotions(): Collection
  720.     {
  721.         return $this->promotions;
  722.     }
  723.     public function addPromotion(Promotions $promotion): self
  724.     {
  725.         if (!$this->promotions->contains($promotion)) {
  726.             $this->promotions[] = $promotion;
  727.             $promotion->setArticle($this);
  728.         }
  729.         return $this;
  730.     }
  731.     public function removePromotion(Promotions $promotion): self
  732.     {
  733.         if ($this->promotions->removeElement($promotion)) {
  734.             // set the owning side to null (unless already changed)
  735.             if ($promotion->getArticle() === $this) {
  736.                 $promotion->setArticle(null);
  737.             }
  738.         }
  739.         return $this;
  740.     }
  741.     public function getInfoTextPunch(): ?string
  742.     {
  743.         return $this->infoTextPunch;
  744.     }
  745.     public function setInfoTextPunch(?string $infoTextPunch): self
  746.     {
  747.         $this->infoTextPunch $infoTextPunch;
  748.         return $this;
  749.     }
  750.     public function getWebshopPunch(): ?string
  751.     {
  752.         return $this->webshopPunch;
  753.     }
  754.     public function setWebshopPunch(?string $webshopPunch): self
  755.     {
  756.         $this->webshopPunch $webshopPunch;
  757.         return $this;
  758.     }
  759.     /**
  760.      * @return Collection<int, RelationArticles>
  761.      */
  762.     public function getRelationArticleParent(): Collection
  763.     {
  764.         return $this->relationArticleParent;
  765.     }
  766.     public function addRelationArticleParent(RelationArticles $relationArticleParent): self
  767.     {
  768.         if (!$this->relationArticleParent->contains($relationArticleParent)) {
  769.             $this->relationArticleParent[] = $relationArticleParent;
  770.             $relationArticleParent->setParentArticle($this);
  771.         }
  772.         return $this;
  773.     }
  774.     public function removeRelationArticleParent(RelationArticles $relationArticleParent): self
  775.     {
  776.         if ($this->relationArticleParent->removeElement($relationArticleParent)) {
  777.             // set the owning side to null (unless already changed)
  778.             if ($relationArticleParent->getParentArticle() === $this) {
  779.                 $relationArticleParent->setParentArticle(null);
  780.             }
  781.         }
  782.         return $this;
  783.     }
  784.     /**
  785.      * @return Collection<int, RelationArticles>
  786.      */
  787.     public function getRealtionArticleChild(): Collection
  788.     {
  789.         return $this->realtionArticleChild;
  790.     }
  791.     public function addRealtionArticleChild(RelationArticles $realtionArticleChild): self
  792.     {
  793.         if (!$this->realtionArticleChild->contains($realtionArticleChild)) {
  794.             $this->realtionArticleChild[] = $realtionArticleChild;
  795.             $realtionArticleChild->setChildArticle($this);
  796.         }
  797.         return $this;
  798.     }
  799.     public function removeRealtionArticleChild(RelationArticles $realtionArticleChild): self
  800.     {
  801.         if ($this->realtionArticleChild->removeElement($realtionArticleChild)) {
  802.             // set the owning side to null (unless already changed)
  803.             if ($realtionArticleChild->getChildArticle() === $this) {
  804.                 $realtionArticleChild->setChildArticle(null);
  805.             }
  806.         }
  807.         return $this;
  808.     }
  809.     /**
  810.      * @return Collection<int, ArticleOrderOutOfStock>
  811.      */
  812.     public function getArticleOrderOutOfStocks(): Collection
  813.     {
  814.         return $this->articleOrderOutOfStocks;
  815.     }
  816.     public function addArticleOrderOutOfStock(ArticleOrderOutOfStock $articleOrderOutOfStock): self
  817.     {
  818.         if (!$this->articleOrderOutOfStocks->contains($articleOrderOutOfStock)) {
  819.             $this->articleOrderOutOfStocks[] = $articleOrderOutOfStock;
  820.             $articleOrderOutOfStock->setArticle($this);
  821.         }
  822.         return $this;
  823.     }
  824.     public function removeArticleOrderOutOfStock(ArticleOrderOutOfStock $articleOrderOutOfStock): self
  825.     {
  826.         if ($this->articleOrderOutOfStocks->removeElement($articleOrderOutOfStock)) {
  827.             // set the owning side to null (unless already changed)
  828.             if ($articleOrderOutOfStock->getArticle() === $this) {
  829.                 $articleOrderOutOfStock->setArticle(null);
  830.             }
  831.         }
  832.         return $this;
  833.     }
  834.     /**
  835.      * @return Collection<int, FilterChild>
  836.      */
  837.     public function getFilterChildren(): Collection
  838.     {
  839.         return $this->filterChildren;
  840.     }
  841.     public function addFilterChild(FilterChild $filterChild): self
  842.     {
  843.         if (!$this->filterChildren->contains($filterChild)) {
  844.             $this->filterChildren[] = $filterChild;
  845.             $filterChild->addArticle($this);
  846.         }
  847.         return $this;
  848.     }
  849.     public function removeFilterChild(FilterChild $filterChild): self
  850.     {
  851.         if ($this->filterChildren->removeElement($filterChild)) {
  852.             $filterChild->removeArticle($this);
  853.         }
  854.         return $this;
  855.     }
  856.     public function isNewArticle(): ?bool
  857.     {
  858.         return $this->newArticle;
  859.     }
  860.     public function setNewArticle(bool $newArticle): self
  861.     {
  862.         $this->newArticle $newArticle;
  863.         return $this;
  864.     }
  865.     public function getNumberOfArticle(): ?int
  866.     {
  867.         return $this->numberOfArticle;
  868.     }
  869.     public function setNumberOfArticle(int $numberOfArticle): self
  870.     {
  871.         $this->numberOfArticle $numberOfArticle;
  872.         return $this;
  873.     }
  874.     /**
  875.      * @return Collection<int, PromotionItem>
  876.      */
  877.     public function getPromotionItems(): Collection
  878.     {
  879.         return $this->promotionItems;
  880.     }
  881.     public function addPromotionItem(PromotionItem $promotionItem): self
  882.     {
  883.         if (!$this->promotionItems->contains($promotionItem)) {
  884.             $this->promotionItems[] = $promotionItem;
  885.             $promotionItem->setArticle($this);
  886.         }
  887.         return $this;
  888.     }
  889.     /**
  890.      * @return Collection<int, NewArticle>
  891.      */
  892.     public function getNewArticles(): Collection
  893.     {
  894.         return $this->newArticles;
  895.     }
  896.     public function addNewArticle(NewArticle $newArticle): self
  897.     {
  898.         if (!$this->newArticles->contains($newArticle)) {
  899.             $this->newArticles[] = $newArticle;
  900.             $newArticle->setArticle($this);
  901.         }
  902.         return $this;
  903.     }
  904.     public function removePromotionItem(PromotionItem $promotionItem): self
  905.     {
  906.         if ($this->promotionItems->removeElement($promotionItem)) {
  907.             // set the owning side to null (unless already changed)
  908.             if ($promotionItem->getArticle() === $this) {
  909.                 $promotionItem->setArticle(null);
  910.             }
  911.         }
  912.         return $this;
  913.     }
  914.     public function removeNewArticle(NewArticle $newArticle): self
  915.     {
  916.         if ($this->newArticles->removeElement($newArticle)) {
  917.             // set the owning side to null (unless already changed)
  918.             if ($newArticle->getArticle() === $this) {
  919.                 $newArticle->setArticle(null);
  920.             }
  921.         }
  922.         return $this;
  923.     }
  924.     public function isModifiedVisibility(): ?bool
  925.     {
  926.         return $this->modifiedVisibility;
  927.     }
  928.     public function setModifiedVisibility(bool $modifiedVisibility): self
  929.     {
  930.         $this->modifiedVisibility $modifiedVisibility;
  931.         return $this;
  932.     }
  933.     /**
  934.      * @return Collection<int, BackOrder>
  935.      */
  936.     public function getBackOrders(): Collection
  937.     {
  938.         return $this->backOrders;
  939.     }
  940.     public function addBackOrder(BackOrder $backOrder): self
  941.     {
  942.         if (!$this->backOrders->contains($backOrder)) {
  943.             $this->backOrders[] = $backOrder;
  944.             $backOrder->setArticle($this);
  945.         }
  946.         return $this;
  947.     }
  948.     public function removeBackOrder(BackOrder $backOrder): self
  949.     {
  950.         if ($this->backOrders->removeElement($backOrder)) {
  951.             // set the owning side to null (unless already changed)
  952.             if ($backOrder->getArticle() === $this) {
  953.                 $backOrder->setArticle(null);
  954.             }
  955.         }
  956.         return $this;
  957.     }
  958.     public function getVisibleBy(): ?Users
  959.     {
  960.         return $this->visibleBy;
  961.     }
  962.     public function setVisibleBy(?Users $visibleBy): self
  963.     {
  964.         $this->visibleBy $visibleBy;
  965.         return $this;
  966.     }
  967.     public function isModifyQuantity(): ?bool
  968.     {
  969.         return $this->modifyQuantity;
  970.     }
  971.     public function setModifyQuantity(bool $modifyQuantity): self
  972.     {
  973.         $this->modifyQuantity $modifyQuantity;
  974.         return $this;
  975.     }
  976. }