<?php

namespace OfficeBrain\Bundle\QuoteBundle\Entity;

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

/**
 * QuoteVariationMaster
 *
 * @ORM\Table("tbl_quote_variation_master", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
 * @ORM\Entity(repositoryClass="OfficeBrain\Bundle\QuoteBundle\Entity\QuoteVariationMasterRepository")
 */
class QuoteVariationMaster
{
    /**
     * @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="QuoteProduct", inversedBy="quoteVariationMaster")  
     * @ORM\JoinColumn(name="quote_product_id",referencedColumnName="id")
     */
    private $quoteProductId;

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

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

    /**
     * @ORM\OneToOne(targetEntity="QuoteVariationMapping", mappedBy="variationMasterId", cascade={"remove"})
     */
    private $quoteVariationMapping;

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

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

    /**
     * Set quoteProductId
     *
     * @param integer $quoteProductId
     * @return QuoteVariationMaster
     */
    public function setQuoteProductId($quoteProductId)
    {
        $this->quoteProductId= $quoteProductId;

        return $this;
    }

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

    /**
     * Set attributeId
     *
     * @param integer $attributeId
     * @return QuoteVariationMaster
     */
    public function setAttributeId($attributeId)
    {
        $this->attributeId = $attributeId;

        return $this;
    }

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

    /**
     * Set attributeValueId
     *
     * @param integer $attributeValueId
     * @return QuoteVariationMaster
     */
    public function setAttributeValueId($attributeValueId)
    {
        $this->attributeValueId = $attributeValueId;

        return $this;
    }

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

/**
     * Set erpId
     *
     * @param integer $erpId
     * @return QuoteVariationMaster
     */
    public function setErpId($erpId)
    {
        $this->erpId = $erpId;

        return $this;
    }

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

    /**
     * Set quoteVariationMapping
     *
     * @param \OfficeBrain\Bundle\QuoteBundle\Entity\QuoteVariationMapping $quoteVariationMapping
     * @return QuoteVariationMaster
     */
    public function setQuoteVariationMapping(\OfficeBrain\Bundle\QuoteBundle\Entity\QuoteVariationMapping $quoteVariationMapping = null)
    {
        $this->quoteVariationMapping = $quoteVariationMapping;

        return $this;
    }

    /**
     * Get quoteVariationMapping
     *
     * @return \OfficeBrain\Bundle\QuoteBundle\Entity\QuoteVariationMapping 
     */
    public function getQuoteVariationMapping()
    {
        return $this->quoteVariationMapping;
    }
}
