src/Aviatur/AgentBundle/Entity/AgentTransaction.php line 14

Open in your IDE?
  1. <?php
  2. namespace Aviatur\AgentBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * AgentTransaction.
  7.  *
  8.  * @ORM\Table(name="agent_transaction", indexes={@ORM\Index(name="agent_id", columns={"agent_id"}), @ORM\Index(name="order_product_id", columns={"order_product_id"}), @ORM\Index(name="agent_commission_id", columns={"agent_commission_id"})})
  9.  * @ORM\Entity
  10.  */
  11. class AgentTransaction
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      */
  20.     private $id;
  21.     /**
  22.      *
  23.      * @ORM\Column(name="commissionValue", type="float", nullable=false)
  24.      * @Assert\Range(
  25.      *      min = 0,
  26.      *      minMessage = "El valor debe ser mayor o igual a 0"
  27.      * )
  28.      */
  29.     private string $commissionvalue '0';
  30.     /**
  31.      *
  32.      * @ORM\ManyToOne(targetEntity="Aviatur\AgentBundle\Entity\Agent", inversedBy="agentTransaction")
  33.      * @ORM\JoinColumns({
  34.      *   @ORM\JoinColumn(name="agent_id", referencedColumnName="id")
  35.      * })
  36.      */
  37.     private ?\Aviatur\AgentBundle\Entity\Agent $agent null;
  38.     /**
  39.      *
  40.      * @ORM\ManyToOne(targetEntity="\Aviatur\AgentBundle\Entity\AgentCommission", inversedBy="agentTransaction")
  41.      * @ORM\JoinColumns({
  42.      *   @ORM\JoinColumn(name="agent_commission_id", referencedColumnName="id")
  43.      * })
  44.      */
  45.     private ?\Aviatur\AgentBundle\Entity\AgentCommission $agentCommission null;
  46.     /**
  47.      *
  48.      * @ORM\Column(name="amountQse", type="float", nullable=false)
  49.      * @Assert\Range(
  50.      *      min = 0,
  51.      *      minMessage = "El valor debe ser mayor o igual a 0"
  52.      * )
  53.      */
  54.     private string $amountQse '0';
  55.     /**
  56.      *
  57.      * @ORM\Column(name="commissionQse", type="float", nullable=false)
  58.      * @Assert\Range(
  59.      *      min = 0,
  60.      *      minMessage = "El valor debe ser mayor o igual a 0"
  61.      * )
  62.      */
  63.     private string $commissionQse '0';
  64.     /**
  65.      *
  66.      * @ORM\Column(name="percentageTarifa", type="float", nullable=false)
  67.      * @Assert\Range(
  68.      *      min = 0,
  69.      *      minMessage = "El valor debe ser mayor o igual a 0"
  70.      * )
  71.      */
  72.     private string $percentageTarifa '0';
  73.     /**
  74.      *
  75.      * @ORM\Column(name="amountTa", type="float", nullable=false)
  76.      * @Assert\Range(
  77.      *      min = 0,
  78.      *      minMessage = "El valor debe ser mayor o igual a 0"
  79.      * )
  80.      */
  81.     private string $amountTa '0';
  82.     /**
  83.      *
  84.      * @ORM\Column(name="commissionTa", type="float", nullable=false)
  85.      * @Assert\Range(
  86.      *      min = 0,
  87.      *      minMessage = "El valor debe ser mayor o igual a 0"
  88.      * )
  89.      */
  90.     private string $commissionTa '0';
  91.     /**
  92.      *
  93.      * @ORM\Column(name="amountProduct", type="float", nullable=false)
  94.      * @Assert\Range(
  95.      *      min = 0,
  96.      *      minMessage = "El valor debe ser mayor o igual a 0"
  97.      * )
  98.      */
  99.     private string $amountProduct '0';
  100.     /**
  101.      *
  102.      * @ORM\Column(name="commissionTarifa", type="float", nullable=false)
  103.      * @Assert\Range(
  104.      *      min = 0,
  105.      *      minMessage = "El valor debe ser mayor o igual a 0"
  106.      * )
  107.      */
  108.     private string $commissionTarifa '0';
  109.     /**
  110.      *
  111.      * @ORM\Column(name="amountTarifa", type="float", nullable=false)
  112.      * @Assert\Range(
  113.      *      min = 0,
  114.      *      minMessage = "El valor debe ser mayor o igual a 0"
  115.      * )
  116.      */
  117.     private string $amountTarifa '0';
  118.     /**
  119.      *
  120.      * @ORM\Column(name="commissionOver", type="float", nullable=false)
  121.      * @Assert\Range(
  122.      *      min = 0,
  123.      *      minMessage = "El valor debe ser mayor o igual a 0"
  124.      * )
  125.      */
  126.     private string $commissionOver '0';
  127.     /**
  128.      *
  129.      * @ORM\Column(name="commissionValueOver", type="float", nullable=false)
  130.      * @Assert\Range(
  131.      *      min = 0,
  132.      *      minMessage = "El valor debe ser mayor o igual a 0"
  133.      * )
  134.      */
  135.     private string $commissionValueOver '0';
  136.     /**
  137.      *
  138.      * @ORM\ManyToOne(targetEntity="Aviatur\GeneralBundle\Entity\OrderProduct", inversedBy="agentTransaction")
  139.      * @ORM\JoinColumns({
  140.      *   @ORM\JoinColumn(name="order_product_id", referencedColumnName="id")
  141.      * })
  142.      */
  143.     private ?\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct null;
  144.     /**
  145.      * Get id.
  146.      *
  147.      * @return int
  148.      */
  149.     public function getId()
  150.     {
  151.         return $this->id;
  152.     }
  153.     /**
  154.      * Set commissionvalue.
  155.      *
  156.      * @param float $commissionvalue
  157.      *
  158.      * @return AgentTransaction
  159.      */
  160.     public function setCommissionvalue($commissionvalue)
  161.     {
  162.         $this->commissionvalue $commissionvalue;
  163.         return $this;
  164.     }
  165.     /**
  166.      * Get commissionvalue.
  167.      *
  168.      * @return float
  169.      */
  170.     public function getCommissionvalue()
  171.     {
  172.         return $this->commissionvalue;
  173.     }
  174.     /**
  175.      * Set agent.
  176.      *
  177.      * @param \Aviatur\AgentBundle\Entity\Agent $agent
  178.      *
  179.      * @return AgentTransaction
  180.      */
  181.     public function setAgent(\Aviatur\AgentBundle\Entity\Agent $agent null)
  182.     {
  183.         $this->agent $agent;
  184.         return $this;
  185.     }
  186.     /**
  187.      * Get agent.
  188.      *
  189.      * @return \Aviatur\AgentBundle\Entity\Agent
  190.      */
  191.     public function getAgent()
  192.     {
  193.         return $this->agent;
  194.     }
  195.     /**
  196.      * Set orderProduct.
  197.      *
  198.      * @param \Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct
  199.      *
  200.      * @return AgentTransaction
  201.      */
  202.     public function setOrderProduct(\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct null)
  203.     {
  204.         $this->orderProduct $orderProduct;
  205.         return $this;
  206.     }
  207.     /**
  208.      * Get orderProduct.
  209.      *
  210.      * @return \Aviatur\GeneralBundle\Entity\OrderProduct
  211.      */
  212.     public function getOrderProduct()
  213.     {
  214.         return $this->orderProduct;
  215.     }
  216.     /**
  217.      * Set agentCommission.
  218.      *
  219.      * @param \Aviatur\AgentBundle\Entity\AgentCommission $agentCommission
  220.      *
  221.      * @return AgentTransaction
  222.      */
  223.     public function setAgentCommission(\Aviatur\AgentBundle\Entity\AgentCommission $agentCommission null)
  224.     {
  225.         $this->agentCommission $agentCommission;
  226.         return $this;
  227.     }
  228.     /**
  229.      * Get agentCommission.
  230.      *
  231.      * @return \Aviatur\AgentBundle\Entity\AgentCommission
  232.      */
  233.     public function getAgentCommission()
  234.     {
  235.         return $this->agentCommission;
  236.     }
  237.     /**
  238.      * Get amountQse.
  239.      *
  240.      * @return float
  241.      */
  242.     public function getAmountQse()
  243.     {
  244.         return $this->amountQse;
  245.     }
  246.     /**
  247.      * Set amountQse.
  248.      *
  249.      * @return AgentTransaction
  250.      */
  251.     public function setAmountQse($amountQse)
  252.     {
  253.         $this->amountQse $amountQse;
  254.         return $this;
  255.     }
  256.     /**
  257.      * Get commissionQse.
  258.      *
  259.      * @return float
  260.      */
  261.     public function getCommissionQse()
  262.     {
  263.         return $this->commissionQse;
  264.     }
  265.     /**
  266.      * Set commissionQse.
  267.      *
  268.      * @return AgentTransaction
  269.      */
  270.     public function setCommissionQse($commissionQse)
  271.     {
  272.         $this->commissionQse $commissionQse;
  273.         return $this;
  274.     }
  275.     /**
  276.      * Get amountTa.
  277.      *
  278.      * @return float
  279.      */
  280.     public function getAmountTa()
  281.     {
  282.         return $this->amountTa;
  283.     }
  284.     /**
  285.      * Set amountTa.
  286.      *
  287.      * @return AgentTransaction
  288.      */
  289.     public function setAmountTa($amountTa)
  290.     {
  291.         $this->amountTa $amountTa;
  292.         return $this;
  293.     }
  294.     /**
  295.      * Get percentageTarifa.
  296.      *
  297.      * @return float
  298.      */
  299.     public function getPercentageTarifa()
  300.     {
  301.         return $this->percentageTarifa;
  302.     }
  303.     /**
  304.      * Set percentageTarifa.
  305.      *
  306.      * @return AgentTransaction
  307.      */
  308.     public function setPercentageTarifa($percentageTarifa)
  309.     {
  310.         $this->percentageTarifa $percentageTarifa;
  311.         return $this;
  312.     }
  313.     /**
  314.      * Get commissionTa.
  315.      *
  316.      * @return float
  317.      */
  318.     public function getCommissionTa()
  319.     {
  320.         return $this->commissionTa;
  321.     }
  322.     /**
  323.      * Set commissionTa.
  324.      *
  325.      * @return AgentTransaction
  326.      */
  327.     public function setCommissionTa($commissionTa)
  328.     {
  329.         $this->commissionTa $commissionTa;
  330.         return $this;
  331.     }
  332.     /**
  333.      * Get amountProduct.
  334.      *
  335.      * @return float
  336.      */
  337.     public function getAmountProduct()
  338.     {
  339.         return $this->amountProduct;
  340.     }
  341.     /**
  342.      * Set amountProduct.
  343.      *
  344.      * @return AgentTransaction
  345.      */
  346.     public function setAmountProduct($amountProduct)
  347.     {
  348.         $this->amountProduct $amountProduct;
  349.         return $this;
  350.     }
  351.     /**
  352.      * Set commissionTarifa.
  353.      *
  354.      * @param float $commissionTarifa
  355.      *
  356.      * @return AgentTransaction
  357.      */
  358.     public function setCommissionTarifa($commissionTarifa)
  359.     {
  360.         $this->commissionTarifa $commissionTarifa;
  361.         return $this;
  362.     }
  363.     /**
  364.      * Get commissionTarifa.
  365.      *
  366.      * @return float
  367.      */
  368.     public function getCommissionTarifa()
  369.     {
  370.         return $this->commissionTarifa;
  371.     }
  372.     /**
  373.      * Set amountTarifa.
  374.      *
  375.      * @param float $amountTarifa
  376.      *
  377.      * @return AgentTransaction
  378.      */
  379.     public function setAmountTarifa($amountTarifa)
  380.     {
  381.         $this->amountTarifa $amountTarifa;
  382.         return $this;
  383.     }
  384.     /**
  385.      * Get amountTarifa.
  386.      *
  387.      * @return float
  388.      */
  389.     public function getAmountTarifa()
  390.     {
  391.         return $this->amountTarifa;
  392.     }
  393.     /**
  394.      * Set commissionOver.
  395.      *
  396.      * @param float $commissionOver
  397.      *
  398.      * @return AgentTransaction
  399.      */
  400.     public function setCommissionOver($commissionOver)
  401.     {
  402.         $this->commissionOver $commissionOver;
  403.         return $this;
  404.     }
  405.     /**
  406.      * Get commissionOver.
  407.      *
  408.      * @return float
  409.      */
  410.     public function getCommissionOver()
  411.     {
  412.         return $this->commissionOver;
  413.     }
  414.     /**
  415.      * Set commissionValueOver.
  416.      *
  417.      * @param float $commissionValueOver
  418.      *
  419.      * @return AgentTransaction
  420.      */
  421.     public function setCommissionValueOver($commissionValueOver)
  422.     {
  423.         $this->commissionValueOver $commissionValueOver;
  424.         return $this;
  425.     }
  426.     /**
  427.      * Get commissionValueOver.
  428.      *
  429.      * @return float
  430.      */
  431.     public function getCommissionValueOver()
  432.     {
  433.         return $this->commissionValueOver;
  434.     }
  435. }