src/Aviatur/GeneralBundle/Entity/PayoutExtra.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PayoutExtra.
  6.  *
  7.  * @ORM\Table(name="payout_extra")
  8.  * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\PayoutExtraRepository")
  9.  */
  10. class PayoutExtra
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="name", type="string", length=255)
  24.      */
  25.     private $name;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="outputText", type="text")
  30.      */
  31.     private $outputtext;
  32.     /**
  33.      * @ORM\Column(name="isMandatory", type="boolean", nullable=false)
  34.      */
  35.     private bool $ismandatory false;
  36.     /**
  37.      * @ORM\Column(name="isActive", type="boolean", nullable=false)
  38.      */
  39.     private bool $isactive false;
  40.     /**
  41.      * @var \DateTime
  42.      *
  43.      * @ORM\Column(name="startDate", type="datetime")
  44.      */
  45.     private $startdate;
  46.     /**
  47.      * @var \DateTime
  48.      *
  49.      * @ORM\Column(name="finishDate", type="datetime")
  50.      */
  51.     private $finishdate;
  52.     /**
  53.      * @var \DateTime
  54.      *
  55.      * @ORM\Column(name="creationDate", type="datetime")
  56.      */
  57.     private $creationDate;
  58.     /**
  59.      * @var int
  60.      *
  61.      * @ORM\Column(name="orderCount", type="integer")
  62.      */
  63.     private $ordercount;
  64.     /**
  65.      * @var string
  66.      *
  67.      * @ORM\Column(name="params", type="text")
  68.      */
  69.     private $params;
  70.     /**
  71.      * @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\PayoutExtraAgency", mappedBy="payoutExtra", cascade={"all"})
  72.      */
  73.     private $payoutExtraAgency;
  74.     public function __construct()
  75.     {
  76.         $this->payoutExtraAgency = new \Doctrine\Common\Collections\ArrayCollection();
  77.     }
  78.     /**
  79.      * Get id.
  80.      *
  81.      * @return int
  82.      */
  83.     public function getId()
  84.     {
  85.         return $this->id;
  86.     }
  87.     /**
  88.      * Set name.
  89.      *
  90.      * @param string $name
  91.      *
  92.      * @return PayoutExtra
  93.      */
  94.     public function setName($name)
  95.     {
  96.         $this->name $name;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get name.
  101.      *
  102.      * @return string
  103.      */
  104.     public function getName()
  105.     {
  106.         return $this->name;
  107.     }
  108.     /**
  109.      * Set outputtext.
  110.      *
  111.      * @param string $outputtext
  112.      *
  113.      * @return PayoutExtra
  114.      */
  115.     public function setOutputtext($outputtext)
  116.     {
  117.         $this->outputtext $outputtext;
  118.         return $this;
  119.     }
  120.     /**
  121.      * Get outputtext.
  122.      *
  123.      * @return string
  124.      */
  125.     public function getOutputtext()
  126.     {
  127.         return $this->outputtext;
  128.     }
  129.     /**
  130.      * Set ismandatory.
  131.      *
  132.      * @param bool $ismandatory
  133.      *
  134.      * @return PayoutExtra
  135.      */
  136.     public function setIsmandatory($ismandatory)
  137.     {
  138.         $this->ismandatory $ismandatory;
  139.         return $this;
  140.     }
  141.     /**
  142.      * Get ismandatory.
  143.      *
  144.      * @return bool
  145.      */
  146.     public function getIsmandatory()
  147.     {
  148.         return $this->ismandatory;
  149.     }
  150.     /**
  151.      * Set isactive.
  152.      *
  153.      * @param bool $isactive
  154.      *
  155.      * @return PayoutExtra
  156.      */
  157.     public function setIsactive($isactive)
  158.     {
  159.         $this->isactive $isactive;
  160.         return $this;
  161.     }
  162.     /**
  163.      * Get isactive.
  164.      *
  165.      * @return bool
  166.      */
  167.     public function getIsactive()
  168.     {
  169.         return $this->isactive;
  170.     }
  171.     /**
  172.      * Set startdate.
  173.      *
  174.      * @param \DateTime $startdate
  175.      *
  176.      * @return PayoutExtra
  177.      */
  178.     public function setStartdate($startdate)
  179.     {
  180.         $this->startdate $startdate;
  181.         return $this;
  182.     }
  183.     /**
  184.      * Get startdate.
  185.      *
  186.      * @return \DateTime
  187.      */
  188.     public function getStartdate()
  189.     {
  190.         return $this->startdate;
  191.     }
  192.     /**
  193.      * Set finishdate.
  194.      *
  195.      * @param \DateTime $finishdate
  196.      *
  197.      * @return PayoutExtra
  198.      */
  199.     public function setFinishdate($finishdate)
  200.     {
  201.         $this->finishdate $finishdate;
  202.         return $this;
  203.     }
  204.     /**
  205.      * Get finishdate.
  206.      *
  207.      * @return \DateTime
  208.      */
  209.     public function getFinishdate()
  210.     {
  211.         return $this->finishdate;
  212.     }
  213.     /**
  214.      * Set creationDate.
  215.      *
  216.      * @param \DateTime $creationDate
  217.      *
  218.      * @return PayoutExtra
  219.      */
  220.     public function setCreationDate($creationDate)
  221.     {
  222.         $this->creationDate $creationDate;
  223.         return $this;
  224.     }
  225.     /**
  226.      * Get creationDate.
  227.      *
  228.      * @return \DateTime
  229.      */
  230.     public function getCreationDate()
  231.     {
  232.         return $this->creationDate;
  233.     }
  234.     /**
  235.      * Set params.
  236.      *
  237.      * @param string $params
  238.      *
  239.      * @return PayoutExtra
  240.      */
  241.     public function setParams($params)
  242.     {
  243.         $this->params $params;
  244.         return $this;
  245.     }
  246.     /**
  247.      * Get params.
  248.      *
  249.      * @return string
  250.      */
  251.     public function getParams()
  252.     {
  253.         return $this->params;
  254.     }
  255.     /**
  256.      * Set ordercount.
  257.      *
  258.      * @param int $ordercount
  259.      *
  260.      * @return PayoutExtra
  261.      */
  262.     public function setOrdercount($ordercount)
  263.     {
  264.         $this->ordercount $ordercount;
  265.         return $this;
  266.     }
  267.     /**
  268.      * Get ordercount.
  269.      *
  270.      * @return int
  271.      */
  272.     public function getOrdercount()
  273.     {
  274.         return $this->ordercount;
  275.     }
  276.     /**
  277.      * Add payoutExtraAgency.
  278.      *
  279.      * @return Agency
  280.      */
  281.     public function addPayoutExtraAgency(\Aviatur\GeneralBundle\Entity\PayoutExtraAgency $payoutExtraAgency)
  282.     {
  283.         $this->payoutExtraAgency[] = $payoutExtraAgency;
  284.         return $this;
  285.     }
  286.     /**
  287.      * Remove payoutExtraAgency.
  288.      */
  289.     public function removePayoutExtraAgency(\Aviatur\GeneralBundle\Entity\PayoutExtraAgency $payoutExtraAgency)
  290.     {
  291.         $this->payoutExtraAgency->removeElement($payoutExtraAgency);
  292.     }
  293.     /**
  294.      * Get payoutExtraAgency.
  295.      *
  296.      * @return \Doctrine\Common\Collections\Collection
  297.      */
  298.     public function getPayoutExtraAgency()
  299.     {
  300.         return $this->payoutExtraAgency;
  301.     }
  302. }