src/Entity/TicketType.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Eventable\EventableTrait;
  4. use App\Repository\TicketTypeRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Uid\Uuid;
  7. /**
  8.  * @ORM\Entity(repositoryClass=TicketTypeRepository::class)
  9.  */
  10. class TicketType
  11. {
  12.     use EventableTrait;
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\Column(type="uuid", unique=true)
  16.      */
  17.     private string $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $name;
  22.     /**
  23.      * @ORM\Column(type="text", nullable=true)
  24.      */
  25.     private $description;
  26.     /**
  27.      * @ORM\Column(type="integer", nullable=true)
  28.      */
  29.     private $ticketTailorId;
  30.     /**
  31.      * @ORM\Column(type="boolean")
  32.      */
  33.     private $person;
  34.     public function __construct()
  35.     {
  36.         $this->id Uuid::v4();
  37.     }
  38.     public function getId(): string
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getName(): ?string
  43.     {
  44.         return $this->name;
  45.     }
  46.     public function setName(string $name): self
  47.     {
  48.         $this->name $name;
  49.         return $this;
  50.     }
  51.     public function getDescription(): ?string
  52.     {
  53.         return $this->description;
  54.     }
  55.     public function setDescription(?string $description): self
  56.     {
  57.         $this->description $description;
  58.         return $this;
  59.     }
  60.     public function getTicketTailorId(): ?int
  61.     {
  62.         return $this->ticketTailorId;
  63.     }
  64.     public function setTicketTailorId(?int $ticketTailorId): self
  65.     {
  66.         $this->ticketTailorId $ticketTailorId;
  67.         return $this;
  68.     }
  69.     public function getPerson(): ?bool
  70.     {
  71.         return $this->person;
  72.     }
  73.     public function setPerson(bool $person): self
  74.     {
  75.         $this->person $person;
  76.         return $this;
  77.     }
  78. }