<?php

namespace OfficeBrain\Bundle\RequestQuoteBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * RequestQuoteItemLine
 *
* @ORM\Table(name="tbl_request_quote_item_line", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
 * @ORM\Entity(repositoryClass="OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteItemLineRepository")
 */
class RequestQuoteItemLine
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint",length=20 ,options={"unsigned"=true})
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer
     * @ORM\ManyToOne(targetEntity="RequestQuoteMaster", inversedBy="requestQuoteItemLine")  
     * @ORM\JoinColumn(name="request_quote_master_id", referencedColumnName="id")
     */
    private $requestQuoteMasterId;

    /**
     * @var integer
     *
     * @ORM\Column(name="product_id", type="bigint",length=20 ,options={"unsigned"=true}, nullable=true)
     */
    private $productId;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_paper_proof", type="boolean", nullable=true, options={"default"=false})
     */
    private $isPaperProof = false;
    
    /**
     * @var string
     *
     * @ORM\Column(name="email_for_paper_proof", type="string", length=255, nullable=true)
     */
    private $emailForPaperProof;
    /**
     * @var integer
     *
     * @ORM\Column(name="culture_product_id", type="bigint",length=20 ,options={"unsigned"=true}, nullable=true)
     */
    private $cultureProductId;

    /**
     * @var integer
     *
     * @ORM\Column(name="line_id", type="bigint",length=20 ,options={"unsigned"=true}, nullable=true)
     */
    private $lineId;

    /**
     * @var string
     *
     * @ORM\Column(name="line_name", type="string", length=255, nullable=true)
     */
    private $lineName;

    /**
     * @var integer
     *
     * @ORM\Column(name="supplier_id", type="bigint",length=20 ,options={"unsigned"=true}, nullable=true)
     */
    private $supplierId;

    /**
     * @var string
     *
     * @ORM\Column(name="catalog_year", type="string", length=255, nullable=true)
     */
    private $catalogYear;

    /**
     * @var integer
     *
     * @ORM\Column(name="currency_id", type="bigint",length=20 ,options={"unsigned"=true}, nullable=true)
     */
    private $currencyId;

    /**
     * @var string
     *
     * @ORM\Column(name="currency_name", type="string", length=255, nullable=true)
     */
    private $currencyName;

    /**
     * @var string
     *
     * @ORM\Column(name="currency", type="string", length=255, nullable=true)
     */
    private $currency;

    /**
     * @var string
     *
     * @ORM\Column(name="currency_symbol", type="string", length=255, nullable=true)
     */
    private $currencySymbol;

    /**
     * @var string
     *
     * @ORM\Column(name="product_name", type="string", length=255, nullable=true)
     */
    private $productName;

    /**
     * @var string
     *
     * @ORM\Column(name="product_sku", type="string", length=255, nullable=true)
     */
    private $productSku;

    /**
     * @var string
     *
     * @ORM\Column(name="product_slug", type="string", length=255, nullable=true)
     */
    private $productSlug;

    /**
     * @var string
     *
     * @ORM\Column(name="product_thumb_image", type="string", length=255, nullable=true)
     */
    private $productThumbImage;

    /**
     * @var string
     *
     * @ORM\Column(name="product_image", type="string", length=255, nullable=true)
     */
    private $productImage;

    /**
     * @var string
     *
     * @ORM\Column(name="product_note", type="string", length=255, nullable=true)
     */
    private $productNote;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_send_review_link", type="boolean",options={"default" = false})
     */
    private $isSendReviewLink;
    
    /**
     * @var boolean
     *
     * @ORM\Column(name="is_complete", type="boolean", nullable=true, options={"default"=false})
     */
    private $isComplete;
    
    /**
     * @var boolean
     *
     * @ORM\Column(name="order_type", type="string", length=255, nullable=true)
     */
    private $orderType;
    
    /**
     * @var boolean
     *
     * @ORM\Column(name="is_feedback_posted", type="boolean",options={"default" = false})
     */
    private $isFeedbackPosted;

    /**
     * @var string
     *
     * @ORM\Column(name="price_unit", type="string", length=255, nullable=true)
     */
    private $priceUnit;
    
    /**
     * @var string
     *
     * @ORM\Column(name="extra_color", type="string", length=255, nullable=true)
     */
    private $extraColor;

    /**
     * @ORM\OneToOne(targetEntity="RequestQuoteProductSupplier", mappedBy="requestQuoteItemLineId")
     */
    private $requestQuoteProductSupplier;
    
    /**
     * @ORM\OneToMany(targetEntity="RequestQuoteProduct", mappedBy="requestQuoteItemLineId")
     */
    private $requestQuoteProduct;
    
    /**
     * @ORM\OneToMany(targetEntity="RequestQuoteProductImprintArea", mappedBy="requestQuoteItemLineId")
     */
    private $requestQuoteProductImprintArea;

    /**
     * @ORM\OneToMany(targetEntity="RequestQuoteProductCharges", mappedBy="requestQuoteItemLineId")
     */
    private $requestQuoteProductCharges;
    

    
    public function __construct() {
    	$this -> requestQuoteProduct = new ArrayCollection();
    	$this -> requestQuoteProductImprintArea = new ArrayCollection();
    	$this -> requestQuoteProductCharges = new ArrayCollection();
    	 
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set productId
     *
     * @param integer $productId
     * @return RequestQuoteItemLine
     */
    public function setProductId($productId)
    {
        $this->productId = $productId;

        return $this;
    }

    /**
     * Get productId
     *
     * @return integer 
     */
    public function getProductId()
    {
        return $this->productId;
    }

    /**
     * Set cultureProductId
     *
     * @param integer $cultureProductId
     * @return RequestQuoteItemLine
     */
    public function setCultureProductId($cultureProductId)
    {
        $this->cultureProductId = $cultureProductId;

        return $this;
    }

    /**
     * Get cultureProductId
     *
     * @return integer 
     */
    public function getCultureProductId()
    {
        return $this->cultureProductId;
    }

    /**
     * Set lineId
     *
     * @param integer $lineId
     * @return RequestQuoteItemLine
     */
    public function setLineId($lineId)
    {
        $this->lineId = $lineId;

        return $this;
    }

    /**
     * Get lineId
     *
     * @return integer 
     */
    public function getLineId()
    {
        return $this->lineId;
    }

    /**
     * Set lineName
     *
     * @param string $lineName
     * @return RequestQuoteItemLine
     */
    public function setLineName($lineName)
    {
        $this->lineName = $lineName;

        return $this;
    }

    /**
     * Get lineName
     *
     * @return string 
     */
    public function getLineName()
    {
        return $this->lineName;
    }

    /**
     * Set supplierId
     *
     * @param integer $supplierId
     * @return RequestQuoteItemLine
     */
    public function setSupplierId($supplierId)
    {
        $this->supplierId = $supplierId;

        return $this;
    }

    /**
     * Get supplierId
     *
     * @return integer 
     */
    public function getSupplierId()
    {
        return $this->supplierId;
    }

    /**
     * Set catalogYear
     *
     * @param string $catalogYear
     * @return RequestQuoteItemLine
     */
    public function setCatalogYear($catalogYear)
    {
        $this->catalogYear = $catalogYear;

        return $this;
    }

    /**
     * Get catalogYear
     *
     * @return string 
     */
    public function getCatalogYear()
    {
        return $this->catalogYear;
    }

    /**
     * Set currencyId
     *
     * @param integer $currencyId
     * @return RequestQuoteItemLine
     */
    public function setCurrencyId($currencyId)
    {
        $this->currencyId = $currencyId;

        return $this;
    }

    /**
     * Get currencyId
     *
     * @return integer 
     */
    public function getCurrencyId()
    {
        return $this->currencyId;
    }

    /**
     * Set currencyName
     *
     * @param string $currencyName
     * @return RequestQuoteItemLine
     */
    public function setCurrencyName($currencyName)
    {
        $this->currencyName = $currencyName;

        return $this;
    }

    /**
     * Get currencyName
     *
     * @return string 
     */
    public function getCurrencyName()
    {
        return $this->currencyName;
    }

    /**
     * Set currency
     *
     * @param string $currency
     * @return RequestQuoteItemLine
     */
    public function setCurrency($currency)
    {
        $this->currency = $currency;

        return $this;
    }

    /**
     * Get currency
     *
     * @return string 
     */
    public function getCurrency()
    {
        return $this->currency;
    }

    /**
     * Set currencySymbol
     *
     * @param string $currencySymbol
     * @return RequestQuoteItemLine
     */
    public function setCurrencySymbol($currencySymbol)
    {
        $this->currencySymbol = $currencySymbol;

        return $this;
    }

    /**
     * Get currencySymbol
     *
     * @return string 
     */
    public function getCurrencySymbol()
    {
        return $this->currencySymbol;
    }

    /**
     * Set productName
     *
     * @param string $productName
     * @return RequestQuoteItemLine
     */
    public function setProductName($productName)
    {
        $this->productName = $productName;

        return $this;
    }

    /**
     * Get productName
     *
     * @return string 
     */
    public function getProductName()
    {
        return $this->productName;
    }

    /**
     * Set productSku
     *
     * @param string $productSku
     * @return RequestQuoteItemLine
     */
    public function setProductSku($productSku)
    {
        $this->productSku = $productSku;

        return $this;
    }

    /**
     * Get productSku
     *
     * @return string 
     */
    public function getProductSku()
    {
        return $this->productSku;
    }

    /**
     * Set productSlug
     *
     * @param string $productSlug
     * @return RequestQuoteItemLine
     */
    public function setProductSlug($productSlug)
    {
        $this->productSlug = $productSlug;

        return $this;
    }

    /**
     * Get productSlug
     *
     * @return string 
     */
    public function getProductSlug()
    {
        return $this->productSlug;
    }

    /**
     * Set productThumbImage
     *
     * @param string $productThumbImage
     * @return RequestQuoteItemLine
     */
    public function setProductThumbImage($productThumbImage)
    {
        $this->productThumbImage = $productThumbImage;

        return $this;
    }

    /**
     * Get productThumbImage
     *
     * @return string 
     */
    public function getProductThumbImage()
    {
        return $this->productThumbImage;
    }

    /**
     * Set productImage
     *
     * @param string $productImage
     * @return RequestQuoteItemLine
     */
    public function setProductImage($productImage)
    {
        $this->productImage = $productImage;

        return $this;
    }

    /**
     * Get productImage
     *
     * @return string 
     */
    public function getProductImage()
    {
        return $this->productImage;
    }

    /**
     * Set productNote
     *
     * @param string $productNote
     * @return RequestQuoteItemLine
     */
    public function setProductNote($productNote)
    {
        $this->productNote = $productNote;

        return $this;
    }

    /**
     * Get productNote
     *
     * @return string 
     */
    public function getProductNote()
    {
        return $this->productNote;
    }

    /**
     * Set isSendReviewLink
     *
     * @param boolean $isSendReviewLink
     * @return RequestQuoteItemLine
     */
    public function setIsSendReviewLink($isSendReviewLink)
    {
        $this->isSendReviewLink = $isSendReviewLink;

        return $this;
    }

    /**
     * Get isSendReviewLink
     *
     * @return boolean 
     */
    public function getIsSendReviewLink()
    {
        return $this->isSendReviewLink;
    }

    /**
     * Set isComplete
     *
     * @param boolean $isComplete
     * @return RequestQuoteItemLine
     */
    public function setIsComplete($isComplete)
    {
        $this->isComplete = $isComplete;

        return $this;
    }

    /**
     * Get isComplete
     *
     * @return boolean 
     */
    public function getIsComplete()
    {
        return $this->isComplete;
    }

    /**
     * Set orderType
     *
     * @param string $orderType
     * @return RequestQuoteItemLine
     */
    public function setOrderType($orderType)
    {
        $this->orderType = $orderType;

        return $this;
    }

    /**
     * Get orderType
     *
     * @return string 
     */
    public function getOrderType()
    {
        return $this->orderType;
    }

    /**
     * Set isFeedbackPosted
     *
     * @param boolean $isFeedbackPosted
     * @return RequestQuoteItemLine
     */
    public function setIsFeedbackPosted($isFeedbackPosted)
    {
        $this->isFeedbackPosted = $isFeedbackPosted;

        return $this;
    }

    /**
     * Get isFeedbackPosted
     *
     * @return boolean 
     */
    public function getIsFeedbackPosted()
    {
        return $this->isFeedbackPosted;
    }

    /**
     * Set requestQuoteMasterId
     *
     * @param \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteMaster $requestQuoteMasterId
     * @return RequestQuoteItemLine
     */
    public function setRequestQuoteMasterId(\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteMaster $requestQuoteMasterId = null)
    {
        $this->requestQuoteMasterId = $requestQuoteMasterId;

        return $this;
    }

    /**
     * Get requestQuoteMasterId
     *
     * @return \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteMaster 
     */
    public function getRequestQuoteMasterId()
    {
        return $this->requestQuoteMasterId;
    }

    /**
     * Set requestQuoteProductSupplier
     *
     * @param \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductSupplier $requestQuoteProductSupplier
     * @return RequestQuoteItemLine
     */
    public function setRequestQuoteProductSupplier(\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductSupplier $requestQuoteProductSupplier = null)
    {
        $this->requestQuoteProductSupplier = $requestQuoteProductSupplier;

        return $this;
    }

    /**
     * Get requestQuoteProductSupplier
     *
     * @return \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductSupplier 
     */
    public function getRequestQuoteProductSupplier()
    {
        return $this->requestQuoteProductSupplier;
    }

    /**
     * Add requestQuoteProduct
     *
     * @param \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProduct $requestQuoteProduct
     * @return RequestQuoteItemLine
     */
    public function addRequestQuoteProduct(\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProduct $requestQuoteProduct)
    {
        $this->requestQuoteProduct[] = $requestQuoteProduct;

        return $this;
    }

    /**
     * Remove requestQuoteProduct
     *
     * @param \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProduct $requestQuoteProduct
     */
    public function removeRequestQuoteProduct(\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProduct $requestQuoteProduct)
    {
        $this->requestQuoteProduct->removeElement($requestQuoteProduct);
    }

    /**
     * Get requestQuoteProduct
     *
     * @return \Doctrine\Common\Collections\Collection 
     */
    public function getRequestQuoteProduct()
    {
        return $this->requestQuoteProduct;
    }

    /**
     * Add requestQuoteProductImprintArea
     *
     * @param \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductImprintArea $requestQuoteProductImprintArea
     * @return RequestQuoteItemLine
     */
    public function addRequestQuoteProductImprintArea(\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductImprintArea $requestQuoteProductImprintArea)
    {
        $this->requestQuoteProductImprintArea[] = $requestQuoteProductImprintArea;

        return $this;
    }

    /**
     * Remove requestQuoteProductImprintArea
     *
     * @param \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductImprintArea $requestQuoteProductImprintArea
     */
    public function removeRequestQuoteProductImprintArea(\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductImprintArea $requestQuoteProductImprintArea)
    {
        $this->requestQuoteProductImprintArea->removeElement($requestQuoteProductImprintArea);
    }

    /**
     * Get requestQuoteProductImprintArea
     *
     * @return \Doctrine\Common\Collections\Collection 
     */
    public function getRequestQuoteProductImprintArea()
    {
        return $this->requestQuoteProductImprintArea;
    }

    /**
     * Add requestQuoteProductCharges
     *
     * @param \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductCharges $requestQuoteProductCharges
     * @return RequestQuoteItemLine
     */
    public function addRequestQuoteProductCharge(\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductCharges $requestQuoteProductCharges)
    {
        $this->requestQuoteProductCharges[] = $requestQuoteProductCharges;

        return $this;
    }

    /**
     * Remove requestQuoteProductCharges
     *
     * @param \OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductCharges $requestQuoteProductCharges
     */
    public function removeRequestQuoteProductCharge(\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductCharges $requestQuoteProductCharges)
    {
        $this->requestQuoteProductCharges->removeElement($requestQuoteProductCharges);
    }

    /**
     * Get requestQuoteProductCharges
     *
     * @return \Doctrine\Common\Collections\Collection 
     */
    public function getRequestQuoteProductCharges()
    {
        return $this->requestQuoteProductCharges;
    }

    /**
     * Set isPaperProof
     *
     * @param boolean $isPaperProof
     *
     * @return RequestQuoteItemLine
     */
    public function setIsPaperProof($isPaperProof)
    {
        $this->isPaperProof = $isPaperProof;

        return $this;
    }

    /**
     * Get isPaperProof
     *
     * @return boolean
     */
    public function getIsPaperProof()
    {
        return $this->isPaperProof;
    }

    /**
     * Set emailForPaperProof
     *
     * @param string $emailForPaperProof
     *
     * @return RequestQuoteItemLine
     */
    public function setEmailForPaperProof($emailForPaperProof)
    {
        $this->emailForPaperProof = $emailForPaperProof;

        return $this;
    }

    /**
     * Get emailForPaperProof
     *
     * @return string
     */
    public function getEmailForPaperProof()
    {
        return $this->emailForPaperProof;
    }
    
    /**
     * Set priceUnit
     *
     * @param string $priceUnit
     * @return RequestInfo
     */
    public function setPriceUnit($priceUnit)
    {
    	$this->priceUnit = $priceUnit;
    
    	return $this;
    }
    
    /**
     * Get priceUnit
     *
     * @return string
     */
    public function getPriceUnit()
    {
    	return $this->priceUnit;
    }
    
    /**
     * Set extraColor
     *
     * @param string $extraColor
     * @return RequestQuote
     */
    public function setExtraColor($extraColor)
    {
    	$this->extraColor = serialize($extraColor);
    
    	return $this;
    }
    
    /**
     * Get extraColor
     *
     * @return string
     */
    public function getExtraColor()
    {
    	return unserialize($this->extraColor);
    }
    
}
