<?php

namespace OfficeBrain\Bundle\QuoteBundle\Entity;

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

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

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

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

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

    /**
     * Set chargesType
     *
     * @param string $chargesType
     * @return QuoteProductCharges
     */
    public function setChargesType($chargesType)
    {
        $this->chargesType = $chargesType;

        return $this;
    }

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

    /**
     * Set chargesAmount
     *
     * @param string $chargesAmount
     * @return QuoteProductCharges
     */
    public function setChargesAmount($chargesAmount)
    {
        $this->chargesAmount = $chargesAmount;

        return $this;
    }

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

    /**
     * Set quoteItemLineId
     *
     * @param \OfficeBrain\Bundle\QuoteBundle\Entity\QuoteItemLine $quoteItemLineId
     * @return QuoteProductCharges
     */
    public function setQuoteItemLineId(\OfficeBrain\Bundle\QuoteBundle\Entity\QuoteItemLine $quoteItemLineId = null)
    {
        $this->quoteItemLineId = $quoteItemLineId;

        return $this;
    }

    /**
     * Get quoteItemLineId
     *
     * @return \OfficeBrain\Bundle\QuoteBundle\Entity\QuoteItemLine 
     */
    public function getQuoteItemLineId()
    {
        return $this->quoteItemLineId;
    }
    
	public function setfieldMethod($fieldName, $fieldValue) {
    	 
    	$this->$fieldName = $fieldValue;
    	 
    	return  $this->$fieldName;
    }
}
