src/Aviatur/AgentBundle/Entity/AgentCommission.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\AgentBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * AgentCommission.
  6.  *
  7.  * @ORM\Table(name="agent_commission", indexes={@ORM\Index(name="agent_id", columns={"agent_id"})})
  8.  * @ORM\Entity
  9.  */
  10. class AgentCommission
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      *
  22.      * @ORM\ManyToOne(targetEntity="Aviatur\AgentBundle\Entity\Agent", inversedBy="agentCommission")
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="agent_id", referencedColumnName="id")
  25.      * })
  26.      */
  27.     private ?\Aviatur\AgentBundle\Entity\Agent $agent null;
  28.     /**
  29.      * @ORM\Column(name="adminFeeCommission", type="float", nullable=false)
  30.      */
  31.     private string $adminfeecommission '0';
  32.     /**
  33.      * @ORM\Column(name="hotelCommission", type="float", nullable=false)
  34.      */
  35.     private string $hotelcommission '0';
  36.     /**
  37.      * @ORM\Column(name="qseCommission", type="integer", nullable=false)
  38.      */
  39.     private string $qsecommission '0';
  40.     /**
  41.      * @ORM\Column(name="qseCommissionMax", type="integer", nullable=false)
  42.      */
  43.     private string $qsecommissionmax '0';
  44.     /**
  45.      * @ORM\Column(name="qseCommissionPercentage", type="float", nullable=false)
  46.      */
  47.     private string $qsecommissionpercentage '0';
  48.     /**
  49.      * @var \DateTime
  50.      *
  51.      * @ORM\Column(name="creationDate", type="datetime", nullable=false)
  52.      */
  53.     private $creationdate;
  54.     /**
  55.      * @ORM\Column(name="activeDetail", type="integer", nullable=false)
  56.      */
  57.     private string $activedetail '0';
  58.     /**
  59.      * @var string
  60.      *
  61.      * @ORM\Column(name="qseProduct", type="text")
  62.      */
  63.     private $qseproduct;
  64.     /**
  65.      * @ORM\OneToMany(targetEntity="Aviatur\AgentBundle\Entity\AgentTransaction", mappedBy="agentCommission", cascade={"all"})
  66.      */
  67.     private $agentTransaction;
  68.     /**
  69.      * Constructor.
  70.      */
  71.     public function __construct()
  72.     {
  73.         $this->agentTransaction = new \Doctrine\Common\Collections\ArrayCollection();
  74.     }
  75.     public function __toString()
  76.     {
  77.         $return = (string) $this->getId();
  78.         return $return;
  79.     }
  80.     /**
  81.      * Get id.
  82.      *
  83.      * @return int
  84.      */
  85.     public function getId()
  86.     {
  87.         return $this->id;
  88.     }
  89.     /**
  90.      * Set adminfeecommission.
  91.      *
  92.      * @param float $adminfeecommission
  93.      *
  94.      * @return AgentCommission
  95.      */
  96.     public function setAdminfeecommission($adminfeecommission)
  97.     {
  98.         $this->adminfeecommission $adminfeecommission;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Get adminfeecommission.
  103.      *
  104.      * @return float
  105.      */
  106.     public function getAdminfeecommission()
  107.     {
  108.         return $this->adminfeecommission;
  109.     }
  110.     /**
  111.      * Set hotelcommission.
  112.      *
  113.      * @param float $hotelcommission
  114.      *
  115.      * @return AgentCommission
  116.      */
  117.     public function setHotelcommission($hotelcommission)
  118.     {
  119.         $this->hotelcommission $hotelcommission;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get hotelcommission.
  124.      *
  125.      * @return float
  126.      */
  127.     public function getHotelcommission()
  128.     {
  129.         return $this->hotelcommission;
  130.     }
  131.     /**
  132.      * Set qsecommission.
  133.      *
  134.      * @param int $qsecommission
  135.      *
  136.      * @return AgentCommission
  137.      */
  138.     public function setQsecommission($qsecommission)
  139.     {
  140.         $this->qsecommission $qsecommission;
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get qsecommission.
  145.      *
  146.      * @return int
  147.      */
  148.     public function getQsecommission()
  149.     {
  150.         return $this->qsecommission;
  151.     }
  152.     /**
  153.      * Set qsecommissionmax.
  154.      *
  155.      * @param int $qsecommissionmax
  156.      *
  157.      * @return AgentCommission
  158.      */
  159.     public function setQsecommissionmax($qsecommissionmax)
  160.     {
  161.         $this->qsecommissionmax $qsecommissionmax;
  162.         return $this;
  163.     }
  164.     /**
  165.      * Get qsecommissionmax.
  166.      *
  167.      * @return int
  168.      */
  169.     public function getQsecommissionmax()
  170.     {
  171.         return $this->qsecommissionmax;
  172.     }
  173.     /**
  174.      * Set qsecommissionpercentage.
  175.      *
  176.      * @param float $qsecommissionpercentage
  177.      *
  178.      * @return AgentCommission
  179.      */
  180.     public function setQsecommissionpercentage($qsecommissionpercentage)
  181.     {
  182.         $this->qsecommissionpercentage $qsecommissionpercentage;
  183.         return $this;
  184.     }
  185.     /**
  186.      * Get qsecommissionpercentage.
  187.      *
  188.      * @return float
  189.      */
  190.     public function getQsecommissionpercentage()
  191.     {
  192.         return $this->qsecommissionpercentage;
  193.     }
  194.     /**
  195.      * Set creationdate.
  196.      *
  197.      * @param \DateTime $creationdate
  198.      *
  199.      * @return AgentCommission
  200.      */
  201.     public function setCreationdate($creationdate)
  202.     {
  203.         $this->creationdate $creationdate;
  204.         return $this;
  205.     }
  206.     /**
  207.      * Get creationdate.
  208.      *
  209.      * @return \DateTime
  210.      */
  211.     public function getCreationdate()
  212.     {
  213.         return $this->creationdate;
  214.     }
  215.     /**
  216.      * Set agent.
  217.      *
  218.      * @param \Aviatur\AgentBundle\Entity\Agent $agent
  219.      *
  220.      * @return AgentCommission
  221.      */
  222.     public function setAgent(\Aviatur\AgentBundle\Entity\Agent $agent null)
  223.     {
  224.         $this->agent $agent;
  225.         return $this;
  226.     }
  227.     /**
  228.      * Get agent.
  229.      *
  230.      * @return \Aviatur\AgentBundle\Entity\Agent
  231.      */
  232.     public function getAgent()
  233.     {
  234.         return $this->agent;
  235.     }
  236.     /**
  237.      * Add agentTransaction.
  238.      *
  239.      * @return AgentCommission
  240.      */
  241.     public function addAgentTransaction(\Aviatur\AgentBundle\Entity\AgentTransaction $agentTransaction)
  242.     {
  243.         $this->agentTransaction[] = $agentTransaction;
  244.         return $this;
  245.     }
  246.     /**
  247.      * Remove agentTransaction.
  248.      */
  249.     public function removeAgentTransaction(\Aviatur\AgentBundle\Entity\AgentTransaction $agentTransaction)
  250.     {
  251.         $this->agentTransaction->removeElement($agentTransaction);
  252.     }
  253.     /**
  254.      * Get agentTransaction.
  255.      *
  256.      * @return \Doctrine\Common\Collections\Collection
  257.      */
  258.     public function getAgentTransaction()
  259.     {
  260.         return $this->agentTransaction;
  261.     }
  262.     /**
  263.      * Get the value of activedetail.
  264.      *
  265.      * @return int
  266.      */
  267.     public function getActivedetail()
  268.     {
  269.         return $this->activedetail;
  270.     }
  271.     /**
  272.      * Set the value of activedetail.
  273.      *
  274.      * @param int $activedetail
  275.      *
  276.      * @return AgentCommission
  277.      */
  278.     public function setActivedetail($activedetail)
  279.     {
  280.         $this->activedetail $activedetail;
  281.         return $this;
  282.     }
  283.     /**
  284.      * Get the value of qseproduct.
  285.      *
  286.      * @return string
  287.      */
  288.     public function getQseproduct()
  289.     {
  290.         return $this->qseproduct;
  291.     }
  292.     /**
  293.      * Set the value of qseproduct.
  294.      *
  295.      * @param string $qseproduct
  296.      *
  297.      * @return AgentCommission
  298.      */
  299.     public function setQseproduct($qseproduct)
  300.     {
  301.         $this->qseproduct $qseproduct;
  302.         return $this;
  303.     }
  304. }