<?php

namespace OfficeBrain\Bundle\QuoteBundle\Entity;

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

/**
 * QuoteProductImprintArea
 *
 * @ORM\Table("tbl_quote_product_imprint_area", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
 * @ORM\Entity(repositoryClass="OfficeBrain\Bundle\QuoteBundle\Entity\QuoteProductImprintAreaRepository")
 */
class QuoteProductImprintArea
{
    /**
     * @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="QuoteItemLine", inversedBy="quoteProductImprintArea")  
     * @ORM\JoinColumn(name="quote_item_line_id",referencedColumnName="id")
     */
    private $quoteItemLineId;

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

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

    /**
     * @var integer
     *
     * @ORM\Column(name="imprint_area_noof_color", type="bigint",length=20 ,options={"unsigned"=true}, nullable=true)
     */
    private $imprintAreaNoofColor;
    
    /**
     * @ORM\OneToMany(targetEntity="QuoteProductImprintColor", mappedBy="imprintAreaId", cascade={"remove"})
     */
    private $quoteProductImprintColor;

    /**
     * @ORM\OneToMany(targetEntity="QuoteProductImprintTextArtWork", mappedBy="imprintAreaId", cascade={"remove"})
     */
    private $quoteProductImprintTextArtWork;
    
    public function __construct() {
    	$this ->quoteProductImprintColor = new ArrayCollection();
    	$this ->quoteProductImprintTextArtWork = new ArrayCollection();
    }

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

    /**
     * Set quoteItemLineId
     *
     * @param integer $quoteItemLineId
     * @return QuoteProductImprintArea
     */
    public function setQuoteItemLineId($quoteItemLineId)
    {
        $this->quoteItemLineId = $quoteItemLineId;

        return $this;
    }

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

    /**
     * Set imprintAreaId
     *
     * @param integer $imprintAreaId
     * @return QuoteProductImprintArea
     */
    public function setImprintAreaId($imprintAreaId)
    {
        $this->imprintAreaId = $imprintAreaId;

        return $this;
    }

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

    /**
     * Set imprintAreaMethodId
     *
     * @param integer $imprintAreaMethodId
     * @return QuoteProductImprintArea
     */
    public function setImprintAreaMethodId($imprintAreaMethodId)
    {
        $this->imprintAreaMethodId = $imprintAreaMethodId;

        return $this;
    }

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

    /**
     * Set imprintAreaNoofColor
     *
     * @param integer $imprintAreaNoofColor
     * @return QuoteProductImprintArea
     */
    public function setImprintAreaNoofColor($imprintAreaNoofColor)
    {
        $this->imprintAreaNoofColor = $imprintAreaNoofColor;

        return $this;
    }

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


    /**
     * Add quoteProductImprintColor
     *
     * @param \OfficeBrain\Bundle\QuoteBundle\Entity\QuoteProductImprintColor $quoteProductImprintColor
     * @return QuoteProductImprintArea
     */
    public function addQuoteProductImprintColor(\OfficeBrain\Bundle\QuoteBundle\Entity\QuoteProductImprintColor $quoteProductImprintColor)
    {
        $this->quoteProductImprintColor[] = $quoteProductImprintColor;

        return $this;
    }

    /**
     * Remove quoteProductImprintColor
     *
     * @param \OfficeBrain\Bundle\QuoteBundle\Entity\QuoteProductImprintColor $quoteProductImprintColor
     */
    public function removeQuoteProductImprintColor(\OfficeBrain\Bundle\QuoteBundle\Entity\QuoteProductImprintColor $quoteProductImprintColor)
    {
        $this->quoteProductImprintColor->removeElement($quoteProductImprintColor);
    }

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

    /**
     * Add quoteProductImprintTextArtWork
     *
     * @param \OfficeBrain\Bundle\QuoteBundle\Entity\QuoteProductImprintTextArtWork $quoteProductImprintTextArtWork
     * @return QuoteProductImprintArea
     */
    public function addQuoteProductImprintTextArtWork(\OfficeBrain\Bundle\QuoteBundle\Entity\QuoteProductImprintTextArtWork $quoteProductImprintTextArtWork)
    {
        $this->quoteProductImprintTextArtWork[] = $quoteProductImprintTextArtWork;

        return $this;
    }

    /**
     * Remove quoteProductImprintTextArtWork
     *
     * @param \OfficeBrain\Bundle\QuoteBundle\Entity\QuoteProductImprintTextArtWork $quoteProductImprintTextArtWork
     */
    public function removeQuoteProductImprintTextArtWork(\OfficeBrain\Bundle\QuoteBundle\Entity\QuoteProductImprintTextArtWork $quoteProductImprintTextArtWork)
    {
        $this->quoteProductImprintTextArtWork->removeElement($quoteProductImprintTextArtWork);
    }

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