src/Entity/UpgradeRule.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UpgradeRuleRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=UpgradeRuleRepository::class)
  7.  */
  8. class UpgradeRule
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="boolean")
  18.      */
  19.     private $active;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Event::class)
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $event;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=TicketType::class)
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private $oldTicketType;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=TicketType::class)
  32.      * @ORM\JoinColumn(nullable=false)
  33.      */
  34.     private $newTicketType;
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getActive(): ?bool
  40.     {
  41.         return $this->active;
  42.     }
  43.     public function setActive(bool $active): self
  44.     {
  45.         $this->active $active;
  46.         return $this;
  47.     }
  48.     public function getEvent(): ?Event
  49.     {
  50.         return $this->event;
  51.     }
  52.     public function setEvent(?Event $event): self
  53.     {
  54.         $this->event $event;
  55.         return $this;
  56.     }
  57.     public function getOldTicketType(): ?TicketType
  58.     {
  59.         return $this->oldTicketType;
  60.     }
  61.     public function setOldTicketType(?TicketType $oldTicketType): self
  62.     {
  63.         $this->oldTicketType $oldTicketType;
  64.         return $this;
  65.     }
  66.     public function getNewTicketType(): ?TicketType
  67.     {
  68.         return $this->newTicketType;
  69.     }
  70.     public function setNewTicketType(?TicketType $newTicketType): self
  71.     {
  72.         $this->newTicketType $newTicketType;
  73.         return $this;
  74.     }
  75. }