<?php
namespace App\Entity;
use App\Repository\UpgradeRuleRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=UpgradeRuleRepository::class)
*/
class UpgradeRule
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="boolean")
*/
private $active;
/**
* @ORM\ManyToOne(targetEntity=Event::class)
* @ORM\JoinColumn(nullable=false)
*/
private $event;
/**
* @ORM\ManyToOne(targetEntity=TicketType::class)
* @ORM\JoinColumn(nullable=false)
*/
private $oldTicketType;
/**
* @ORM\ManyToOne(targetEntity=TicketType::class)
* @ORM\JoinColumn(nullable=false)
*/
private $newTicketType;
public function getId(): ?int
{
return $this->id;
}
public function getActive(): ?bool
{
return $this->active;
}
public function setActive(bool $active): self
{
$this->active = $active;
return $this;
}
public function getEvent(): ?Event
{
return $this->event;
}
public function setEvent(?Event $event): self
{
$this->event = $event;
return $this;
}
public function getOldTicketType(): ?TicketType
{
return $this->oldTicketType;
}
public function setOldTicketType(?TicketType $oldTicketType): self
{
$this->oldTicketType = $oldTicketType;
return $this;
}
public function getNewTicketType(): ?TicketType
{
return $this->newTicketType;
}
public function setNewTicketType(?TicketType $newTicketType): self
{
$this->newTicketType = $newTicketType;
return $this;
}
}