src/OfficeBrain/Bundle/RequestQuoteBundle/Entity/RequestQuoteProductCharges.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\RequestQuoteBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. /**
  7.  * RequestQuoteProductCharges
  8.  *
  9.  * @ORM\Table("tbl_request_quote_product_charges", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
  10.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteProductChargesRepository")
  11.  */
  12. class RequestQuoteProductCharges
  13. {
  14.     /**
  15.      * @var integer
  16.      *
  17.      * @ORM\Column(name="id",type="bigint",length=20 ,options={"unsigned"=true})
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="AUTO")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var integer
  24.      * @ORM\ManyToOne(targetEntity="RequestQuoteItemLine", inversedBy="requestQuoteProductCharges")  
  25.      * @ORM\JoinColumn(name="request_quote_item_line_id", referencedColumnName="id")
  26.      */
  27.     private $requestQuoteItemLineId;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="charges_type", type="string", length=255, nullable=true)
  32.      */
  33.     private $chargesType;
  34.     /**
  35.      * @var string
  36.      *
  37.      * @ORM\Column(name="charges_amount", type="decimal",precision=11, scale=2, options={"default" = 0})
  38.      */
  39.     private $chargesAmount;
  40.     /**
  41.      * Get id
  42.      *
  43.      * @return integer 
  44.      */
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     /**
  50.      * Set requestQuoteItemLineId
  51.      *
  52.      * @param \App\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteItemLine $requestQuoteItemLineId
  53.      * @return RequestQuoteProductCharges
  54.      */
  55.     public function setRequestQuoteItemLineId(\App\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteItemLine $requestQuoteItemLineId=null)
  56.     {
  57.         $this->requestQuoteItemLineId $requestQuoteItemLineId;
  58.         return $this;
  59.     }
  60.     /**
  61.      * Get requestQuoteItemLineId
  62.      *
  63.      * @return \App\OfficeBrain\Bundle\RequestQuoteBundle\Entity\RequestQuoteItemLine
  64.      */
  65.     public function getRequestQuoteItemLineId()
  66.     {
  67.         return $this->requestQuoteItemLineId;
  68.     }
  69.     /**
  70.      * Set chargesType
  71.      *
  72.      * @param string $chargesType
  73.      * @return RequestQuoteProductCharges
  74.      */
  75.     public function setChargesType($chargesType)
  76.     {
  77.         $this->chargesType $chargesType;
  78.         return $this;
  79.     }
  80.     /**
  81.      * Get chargesType
  82.      *
  83.      * @return string 
  84.      */
  85.     public function getChargesType()
  86.     {
  87.         return $this->chargesType;
  88.     }
  89.     /**
  90.      * Set chargesAmount
  91.      *
  92.      * @param string $chargesAmount
  93.      * @return RequestQuoteProductCharges
  94.      */
  95.     public function setChargesAmount($chargesAmount)
  96.     {
  97.         $this->chargesAmount $chargesAmount;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get chargesAmount
  102.      *
  103.      * @return string 
  104.      */
  105.     public function getChargesAmount()
  106.     {
  107.         return $this->chargesAmount;
  108.     }
  109. }