src/Aviatur/GeneralBundle/Entity/PayoutExtraAgency.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_agency")
  8.  * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\PayoutExtraAgencyRepository")
  9.  */
  10. class PayoutExtraAgency
  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.      *
  22.      * @ORM\ManyToOne(targetEntity="\Aviatur\GeneralBundle\Entity\PayoutExtra", inversedBy="payoutExtraAgency", cascade={"all"})
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="payout_extra_id", referencedColumnName="id")
  25.      * })
  26.      */
  27.     private ?\Aviatur\GeneralBundle\Entity\PayoutExtra $payoutExtra null;
  28.     /**
  29.      *
  30.      * @ORM\ManyToOne(targetEntity="\Aviatur\AgencyBundle\Entity\Agency", inversedBy="payoutExtraAgency", cascade={"all"})
  31.      * @ORM\JoinColumns({
  32.      *   @ORM\JoinColumn(name="agency_id", referencedColumnName="id")
  33.      * })
  34.      */
  35.     private ?\Aviatur\AgencyBundle\Entity\Agency $agency null;
  36.     /**
  37.      * @ORM\Column(name="isActive", type="boolean", nullable=false)
  38.      */
  39.     private bool $isactive false;
  40.     /**
  41.      * Get id.
  42.      *
  43.      * @return int
  44.      */
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     /**
  50.      * Set isactive.
  51.      *
  52.      * @param bool $isactive
  53.      *
  54.      * @return PayoutExtra
  55.      */
  56.     public function setIsactive($isactive)
  57.     {
  58.         $this->isactive $isactive;
  59.         return $this;
  60.     }
  61.     /**
  62.      * Get isactive.
  63.      *
  64.      * @return bool
  65.      */
  66.     public function getIsactive()
  67.     {
  68.         return $this->isactive;
  69.     }
  70.     /**
  71.      * Set agency.
  72.      *
  73.      * @param \Aviatur\GeneralBundle\Entity\PayoutExtra $payoutExtra
  74.      *
  75.      * @return PayoutExtra
  76.      */
  77.     public function setPayoutExtra(\Aviatur\GeneralBundle\Entity\PayoutExtra $payoutExtra null)
  78.     {
  79.         $this->payoutExtra $payoutExtra;
  80.         return $this;
  81.     }
  82.     /**
  83.      * Get agency.
  84.      *
  85.      * @return \Aviatur\GeneralBundle\Entity\PayoutExtra
  86.      */
  87.     public function getPayoutExtra()
  88.     {
  89.         return $this->payoutExtra;
  90.     }
  91.     /**
  92.      * Set agency.
  93.      *
  94.      * @param \Aviatur\AgencyBundle\Entity\Agency $agency
  95.      *
  96.      * @return PayoutExtra
  97.      */
  98.     public function setAgency(\Aviatur\AgencyBundle\Entity\Agency $agency null)
  99.     {
  100.         $this->agency $agency;
  101.         return $this;
  102.     }
  103.     /**
  104.      * Get agency.
  105.      *
  106.      * @return \Aviatur\AgencyBundle\Entity\Agency
  107.      */
  108.     public function getAgency()
  109.     {
  110.         return $this->agency;
  111.     }
  112. }