<?php

namespace OfficeBrain\Bundle\OrderBundle\Entity;

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

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

    /**
     * @ORM\ManyToOne(targetEntity="OrderMaster", inversedBy="orderItemLine")
     * @ORM\JoinColumn(name="order_master_id", referencedColumnName="id")
     */
    private $orderMasterId;

    /**
     * @var integer
     *
     * @ORM\Column(name="product_id",type="bigint", length=20, nullable=true, options={"unsigned"=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 boolean
     *
     * @ORM\Column(name="is_product_proof", type="boolean", nullable=true, options={"default"=false})
     */
    private $isProductProof = false;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_fax_proof", type="boolean",options={"default" = false}, nullable=true)
     */
    private $isFaxProof = false;
    
    /**
     * @var string
     *
     * @ORM\Column(name="faxnumber_for_fax_proof", type="string", length=255, nullable=true)
     */
    private $faxnumberForPaperProof;
    
    /**
     * @var integer
     *
     * @ORM\Column(name="supplier_id",type="bigint", length=20, nullable=true, options={"unsigned"=true})
     */
    private $supplierId;
    
    /**
     * @var integer
     *
     * @ORM\Column(name="currency_id",type="bigint", length=20, nullable=true, options={"unsigned"=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_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", nullable=true, options={"default"=false})
     */
    private $isSendReviewLink = false;
    
    /**
     * @var boolean
     *
     * @ORM\Column(name="is_complete", type="boolean", nullable=true, options={"default"=false})
     */
    private $isComplete;
    
    /**
     * @var string
     *
     * @ORM\Column(name="item_line_amount", type="decimal",precision=11, scale=2, options={"default" = 0.00})
     */
    private $itemLineAmount = '0.00';
    
    /**
     * @var string
     *
     * @ORM\Column(name="unit_price", type="decimal",precision=11, scale=2, options={"default" = 0.00})
     */
    private $unitPrice = '0.00';
    
    /**
     * @var string
     *
     * @ORM\Column(name="item_qty_total", type="bigint", length=20, nullable=true)
     */
    private $itemQtyTotal=0;
    
    /**
     * @var boolean
     *
     * @ORM\Column(name="order_type", type="string", length=255, nullable=true)
     */
    private $orderType;
    
    /**
     * @var string
     *
     * @ORM\Column(name="vat_tax", type="decimal",precision=11, scale=2, options={"default" = 0.00})
     */
    private $vatTax = '0.00';
    
    
    /**
     * @var boolean
     *
     * @ORM\Column(name="vat_type", type="string", length=255, nullable=true)
     */
    private $vatType;
    
    /**
     * @var boolean
     *
     * @ORM\Column(name="is_feedback_posted", type="boolean", nullable=true, 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="product_detail", type="string", length=255, nullable=true)
     */
    private $productDetail;

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

    /**
     * @ORM\OneToMany(targetEntity="OrderProduct", mappedBy="orderItemLineId")
     */
    private $orderProduct;
    
    /**
     * @ORM\OneToMany(targetEntity="OrderProductCharges", mappedBy="orderItemLineId")
     */
    private $orderProductCharges;
    
    /**
     * @ORM\OneToMany(targetEntity="OrderProductImprintArea", mappedBy="orderItemLineId")
     */
    private $orderProductImprintArea;
    
    /**
     * @var string
     *
     * @ORM\Column(name="extra_color", type="string", length=255, nullable=true)
     */
    private $extraColor;
    
    public function __construct() {
    	$this->orderProduct = new ArrayCollection();
    	$this->orderProductCharges = new ArrayCollection();
    	$this->orderProductImprintArea = new ArrayCollection();
    }
    
   

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

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

        return $this;
    }

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

    /**
     * Set isPaperProof
     *
     * @param boolean $isPaperProof
     * @return OrderItemLine
     */
    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 OrderItemLine
     */
    public function setEmailForPaperProof($emailForPaperProof)
    {
        $this->emailForPaperProof = $emailForPaperProof;

        return $this;
    }

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

    /**
     * Set isProductProof
     *
     * @param boolean $isProductProof
     * @return OrderItemLine
     */
    public function setIsProductProof($isProductProof)
    {
        $this->isProductProof = $isProductProof;

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Set currencyId
     *
     * @param integer $currencyId
     * @return OrderItemLine
     */
    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 OrderItemLine
     */
    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 OrderItemLine
     */
    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 OrderItemLine
     */
    public function setCurrencySymbol($currencySymbol)
    {
        $this->currencySymbol = $currencySymbol;

        return $this;
    }

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

    /**
     * Set productSku
     *
     * @param string $productSku
     * @return OrderItemLine
     */
    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 OrderItemLine
     */
    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 OrderItemLine
     */
    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 OrderItemLine
     */
    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 OrderItemLine
     */
    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 OrderItemLine
     */
    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 OrderItemLine
     */
    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 OrderItemLine
     */
    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 OrderItemLine
     */
    public function setIsFeedbackPosted($isFeedbackPosted)
    {
        $this->isFeedbackPosted = $isFeedbackPosted;

        return $this;
    }

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

    /**
     * Set orderMasterId
     *
     * @param \OfficeBrain\Bundle\OrderBundle\Entity\OrderMaster $orderMasterId
     * @return OrderItemLine
     */
    public function setOrderMasterId(\OfficeBrain\Bundle\OrderBundle\Entity\OrderMaster $orderMasterId = null)
    {
        $this->orderMasterId = $orderMasterId;

        return $this;
    }

    /**
     * Get orderMasterId
     *
     * @return \OfficeBrain\Bundle\OrderBundle\Entity\OrderMaster 
     */
    public function getOrderMasterId()
    {
        return $this->orderMasterId;
    }

    /**
     * Add orderProduct
     *
     * @param \OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProduct
     * @return OrderItemLine
     */
    public function addOrderProduct(\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProduct)
    {
        $this->orderProduct[] = $orderProduct;

        return $this;
    }

    /**
     * Remove orderProduct
     * doctrine:schema:update --force
     * @param \OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProduct
     */
    public function removeOrderProduct(\OfficeBrain\Bundle\OrderBundle\Entity\OrderProduct $orderProduct)
    {
        $this->orderProduct->removeElement($orderProduct);
    }

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

    /**
     * Add orderProductCharges
     *
     * @param \OfficeBrain\Bundle\OrderBundle\Entity\OrderProductCharges $orderProductCharges
     * @return OrderItemLine
     */
    public function addOrderProductCharge(\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductCharges $orderProductCharges)
    {
        $this->orderProductCharges[] = $orderProductCharges;

        return $this;
    }

    /**
     * Remove orderProductCharges
     *
     * @param \OfficeBrain\Bundle\OrderBundle\Entity\OrderProductCharges $orderProductCharges
     */
    public function removeOrderProductCharge(\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductCharges $orderProductCharges)
    {
        $this->orderProductCharges->removeElement($orderProductCharges);
    }

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

    /**
     * Add orderProductImprintArea
     *
     * @param \OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $orderProductImprintArea
     * @return OrderItemLine
     */
    public function addOrderProductImprintArea(\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $orderProductImprintArea)
    {
        $this->orderProductImprintArea[] = $orderProductImprintArea;

        return $this;
    }

    /**
     * Remove orderProductImprintArea
     *
     * @param \OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $orderProductImprintArea
     */
    public function removeOrderProductImprintArea(\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $orderProductImprintArea)
    {
        $this->orderProductImprintArea->removeElement($orderProductImprintArea);
    }

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

    /**
     * Set isFaxProof
     *
     * @param boolean $isFaxProof
     *
     * @return OrderItemLine
     */
    public function setIsFaxProof($isFaxProof)
    {
        $this->isFaxProof = $isFaxProof;

        return $this;
    }

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

    /**
     * Set faxnumberForPaperProof
     *
     * @param string $faxnumberForPaperProof
     *
     * @return OrderItemLine
     */
    public function setFaxnumberForPaperProof($faxnumberForPaperProof)
    {
        $this->faxnumberForPaperProof = $faxnumberForPaperProof;

        return $this;
    }

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

    /**
     * Set itemLineAmount
     *
     * @param string $itemLineAmount
     *
     * @return OrderItemLine
     */
    public function setItemLineAmount($itemLineAmount)
    {
        $this->itemLineAmount = $itemLineAmount;

        return $this;
    }

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

    /**
     * Set unitPrice
     *
     * @param string $unitPrice
     *
     * @return OrderItemLine
     */
    public function setUnitPrice($unitPrice)
    {
        $this->unitPrice = $unitPrice;

        return $this;
    }

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

    /**
     * Set itemQtyTotal
     *
     * @param integer $itemQtyTotal
     *
     * @return OrderItemLine
     */
    public function setItemQtyTotal($itemQtyTotal)
    {
        $this->itemQtyTotal = $itemQtyTotal;

        return $this;
    }

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

    /**
     * Set vatTax
     *
     * @param string $vatTax
     *
     * @return OrderItemLine
     */
    public function setVatTax($vatTax)
    {
        $this->vatTax = $vatTax;

        return $this;
    }

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

    /**
     * Set vatType
     *
     * @param string $vatType
     *
     * @return OrderItemLine
     */
    public function setVatType($vatType)
    {
        $this->vatType = $vatType;

        return $this;
    }

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

    /**
     * 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 productDetail
     *
     * @param string $productDetail
     *
     * @return OrderItemLine
     */
    public function setProductDetail($productDetail)
    {
        $this->productDetail = $productDetail;

        return $this;
    }

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

    /**
     * Set productDetailConfiguration
     *
     * @param string $productDetailConfiguration
     *
     * @return OrderItemLine
     */
    public function setProductDetailConfiguration($productDetailConfiguration)
    {
        $this->productDetailConfiguration = $productDetailConfiguration;

        return $this;
    }

    /**
     * Get productDetailConfiguration
     *
     * @return string
     */
    public function getProductDetailConfiguration()
    {
        return $this->productDetailConfiguration;
    }
    
    /**
     * Set extraColor
     *
     * @param string $extraColor
     * @return OrderItemLine
     */
    public function setExtraColor($extraColor)
    {
    	$this->extraColor = $extraColor;
    
    	return $this;
    }
    
    /**
     * Get extraColor
     *
     * @return string
     */
    public function getExtraColor()
    {
    	return $this->extraColor;
    }
}
