src/OfficeBrain/Bundle/OrderBundle/Entity/OrderProductCharges.php line 13

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