<?php
namespace Aviatur\AgentBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* AgentCommission.
*
* @ORM\Table(name="agent_commission", indexes={@ORM\Index(name="agent_id", columns={"agent_id"})})
* @ORM\Entity
*/
class AgentCommission
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\AgentBundle\Entity\Agent", inversedBy="agentCommission")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="agent_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\AgentBundle\Entity\Agent $agent = null;
/**
* @ORM\Column(name="adminFeeCommission", type="float", nullable=false)
*/
private string $adminfeecommission = '0';
/**
* @ORM\Column(name="hotelCommission", type="float", nullable=false)
*/
private string $hotelcommission = '0';
/**
* @ORM\Column(name="qseCommission", type="integer", nullable=false)
*/
private string $qsecommission = '0';
/**
* @ORM\Column(name="qseCommissionMax", type="integer", nullable=false)
*/
private string $qsecommissionmax = '0';
/**
* @ORM\Column(name="qseCommissionPercentage", type="float", nullable=false)
*/
private string $qsecommissionpercentage = '0';
/**
* @var \DateTime
*
* @ORM\Column(name="creationDate", type="datetime", nullable=false)
*/
private $creationdate;
/**
* @ORM\Column(name="activeDetail", type="integer", nullable=false)
*/
private string $activedetail = '0';
/**
* @var string
*
* @ORM\Column(name="qseProduct", type="text")
*/
private $qseproduct;
/**
* @ORM\OneToMany(targetEntity="Aviatur\AgentBundle\Entity\AgentTransaction", mappedBy="agentCommission", cascade={"all"})
*/
private $agentTransaction;
/**
* Constructor.
*/
public function __construct()
{
$this->agentTransaction = new \Doctrine\Common\Collections\ArrayCollection();
}
public function __toString()
{
$return = (string) $this->getId();
return $return;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set adminfeecommission.
*
* @param float $adminfeecommission
*
* @return AgentCommission
*/
public function setAdminfeecommission($adminfeecommission)
{
$this->adminfeecommission = $adminfeecommission;
return $this;
}
/**
* Get adminfeecommission.
*
* @return float
*/
public function getAdminfeecommission()
{
return $this->adminfeecommission;
}
/**
* Set hotelcommission.
*
* @param float $hotelcommission
*
* @return AgentCommission
*/
public function setHotelcommission($hotelcommission)
{
$this->hotelcommission = $hotelcommission;
return $this;
}
/**
* Get hotelcommission.
*
* @return float
*/
public function getHotelcommission()
{
return $this->hotelcommission;
}
/**
* Set qsecommission.
*
* @param int $qsecommission
*
* @return AgentCommission
*/
public function setQsecommission($qsecommission)
{
$this->qsecommission = $qsecommission;
return $this;
}
/**
* Get qsecommission.
*
* @return int
*/
public function getQsecommission()
{
return $this->qsecommission;
}
/**
* Set qsecommissionmax.
*
* @param int $qsecommissionmax
*
* @return AgentCommission
*/
public function setQsecommissionmax($qsecommissionmax)
{
$this->qsecommissionmax = $qsecommissionmax;
return $this;
}
/**
* Get qsecommissionmax.
*
* @return int
*/
public function getQsecommissionmax()
{
return $this->qsecommissionmax;
}
/**
* Set qsecommissionpercentage.
*
* @param float $qsecommissionpercentage
*
* @return AgentCommission
*/
public function setQsecommissionpercentage($qsecommissionpercentage)
{
$this->qsecommissionpercentage = $qsecommissionpercentage;
return $this;
}
/**
* Get qsecommissionpercentage.
*
* @return float
*/
public function getQsecommissionpercentage()
{
return $this->qsecommissionpercentage;
}
/**
* Set creationdate.
*
* @param \DateTime $creationdate
*
* @return AgentCommission
*/
public function setCreationdate($creationdate)
{
$this->creationdate = $creationdate;
return $this;
}
/**
* Get creationdate.
*
* @return \DateTime
*/
public function getCreationdate()
{
return $this->creationdate;
}
/**
* Set agent.
*
* @param \Aviatur\AgentBundle\Entity\Agent $agent
*
* @return AgentCommission
*/
public function setAgent(\Aviatur\AgentBundle\Entity\Agent $agent = null)
{
$this->agent = $agent;
return $this;
}
/**
* Get agent.
*
* @return \Aviatur\AgentBundle\Entity\Agent
*/
public function getAgent()
{
return $this->agent;
}
/**
* Add agentTransaction.
*
* @return AgentCommission
*/
public function addAgentTransaction(\Aviatur\AgentBundle\Entity\AgentTransaction $agentTransaction)
{
$this->agentTransaction[] = $agentTransaction;
return $this;
}
/**
* Remove agentTransaction.
*/
public function removeAgentTransaction(\Aviatur\AgentBundle\Entity\AgentTransaction $agentTransaction)
{
$this->agentTransaction->removeElement($agentTransaction);
}
/**
* Get agentTransaction.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAgentTransaction()
{
return $this->agentTransaction;
}
/**
* Get the value of activedetail.
*
* @return int
*/
public function getActivedetail()
{
return $this->activedetail;
}
/**
* Set the value of activedetail.
*
* @param int $activedetail
*
* @return AgentCommission
*/
public function setActivedetail($activedetail)
{
$this->activedetail = $activedetail;
return $this;
}
/**
* Get the value of qseproduct.
*
* @return string
*/
public function getQseproduct()
{
return $this->qseproduct;
}
/**
* Set the value of qseproduct.
*
* @param string $qseproduct
*
* @return AgentCommission
*/
public function setQseproduct($qseproduct)
{
$this->qseproduct = $qseproduct;
return $this;
}
}