product = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set name. * * @param string $name * * @return Pricelist */ public function setName($name) { $this->name = $name; return $this; } /** * Get name. * * @return string */ public function getName() { return $this->name; } /** * Set currency. * * @return Pricelist */ public function setCurrency(?\KupShop\I18nBundle\Entity\Currency $currency = null) { $this->currency = $currency; return $this; } /** * Get currency. * * @return \KupShop\I18nBundle\Entity\Currency */ public function getCurrency() { return $this->currency; } /** * Add product. * * @return Pricelist */ public function addProduct(PricelistProduct $product) { $this->product[] = $product; return $this; } /** * Remove product. */ public function removeProduct(PricelistProduct $product) { $this->product->removeElement($product); } /** * Get product. * * @return \Doctrine\Common\Collections\Collection */ public function getProduct() { return $this->product; } /** * Get extend product discount field. * * @return bool */ public function getUseProductDiscount() { return $this->useProductDiscount; } /** * Set use product discount field. * * @param bool $useProductDiscount * * @return Pricelist */ public function setUseProductDiscount($useProductDiscount) { $this->useProductDiscount = $useProductDiscount; return $this; } /** * Get coefficient field. * * @return float */ public function getCoefficient() { return $this->coefficient; } /** * Set use product discount field. * * @param float $coefficient * * @return Pricelist */ public function setCoefficient($coefficient) { $this->coefficient = $coefficient; return $this; } }