<?php

namespace OfficeBrain\Bundle\OrderBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

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

    /**
     * @ORM\ManyToOne(targetEntity="OrderProductImprintArea", inversedBy="orderProductImprintColor")
     * @ORM\JoinColumn(name="imprint_area_id", referencedColumnName="id")
     */
    private $imprintAreaId;

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_pms_color", type="boolean", nullable=true, options={"default"=false})
     */
    private $isPmsColor;

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

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

    /**
     * @var string
     *
     * @ORM\Column(name="price", type="decimal",precision=11, scale=2, options={"default" = 0}, nullable=true)
     */
    private $price=0.00;

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

    /**
     * Set isPmsColor
     *
     * @param boolean $isPmsColor
     * @return OrderProductImprintColor
     */
    public function setIsPmsColor($isPmsColor)
    {
        $this->isPmsColor = $isPmsColor;

        return $this;
    }

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

    /**
     * Set colorName
     *
     * @param string $colorName
     * @return OrderProductImprintColor
     */
    public function setColorName($colorName)
    {
        $this->colorName = $colorName;

        return $this;
    }

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

    /**
     * Set colorId
     *
     * @param integer $colorId
     * @return OrderProductImprintColor
     */
    public function setColorId($colorId)
    {
        $this->colorId = $colorId;

        return $this;
    }

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

    /**
     * Set price
     *
     * @param string $price
     * @return OrderProductImprintColor
     */
    public function setPrice($price)
    {
        $this->price = $price;

        return $this;
    }

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

    /**
     * Set imprintAreaId
     *
     * @param \OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $imprintAreaId
     * @return OrderProductImprintColor
     */
    public function setImprintAreaId(\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea $imprintAreaId = null)
    {
        $this->imprintAreaId = $imprintAreaId;

        return $this;
    }

    /**
     * Get imprintAreaId
     *
     * @return \OfficeBrain\Bundle\OrderBundle\Entity\OrderProductImprintArea 
     */
    public function getImprintAreaId()
    {
        return $this->imprintAreaId;
    }
}
