<?php
namespace App\OfficeBrain\Bundle\OrderBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* OrderProductCharges
*
* @ORM\Table(name="tbl_order_product_charges", options={"type"="InnoDB","charset"="utf8","collate"="utf8_unicode_ci"})
* @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\OrderBundle\Entity\OrderProductChargesRepository")
*/
class OrderProductCharges
{
/**
* @var integer
*
* @ORM\Column(name="id",type="bigint", length=20 , options={"unsigned"=true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="OrderItemLine", inversedBy="orderProductCharges")
* @ORM\JoinColumn(name="order_item_line_id", referencedColumnName="id")
*/
private $orderItemLineId;
/**
* @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 OrderProductCharges
*/
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 OrderProductCharges
*/
public function setChargesAmount($chargesAmount)
{
$this->chargesAmount = $chargesAmount;
return $this;
}
/**
* Get chargesAmount
*
* @return string
*/
public function getChargesAmount()
{
return $this->chargesAmount;
}
/**
* Set orderItemLineId
*
* @param \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderItemLine $orderItemLineId
*
* @return OrderProductCharges
*/
public function setOrderItemLineId(\App\OfficeBrain\Bundle\OrderBundle\Entity\OrderItemLine $orderItemLineId = null)
{
$this->orderItemLineId = $orderItemLineId;
return $this;
}
/**
* Get orderItemLineId
*
* @return \App\OfficeBrain\Bundle\OrderBundle\Entity\OrderItemLine
*/
public function getOrderItemLineId()
{
return $this->orderItemLineId;
}
}