src/Entity/Server/Ticket/TicketMessage.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Server\Ticket;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Generic\User;
  5. use App\Repository\Server\Ticket\TicketMessageRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  9. #[ORM\Entity(repositoryClassTicketMessageRepository::class)]
  10. class TicketMessage extends BaseEntity
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\Column(type'guid'uniquetrue)]
  14.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  15.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  16.     private $id;
  17.     #[ORM\ManyToOne(inversedBy'ticketMessages')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?Ticket $ticket null;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?array $files null;
  22.     #[ORM\ManyToOne(inversedBy'ticketMessages')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?User $author null;
  25.     #[ORM\Column(typeTypes::TEXT)]
  26.     private ?string $message null;
  27.     public function getId(): ?string
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getTicket(): ?Ticket
  32.     {
  33.         return $this->ticket;
  34.     }
  35.     public function setTicket(?Ticket $ticket): static
  36.     {
  37.         $this->ticket $ticket;
  38.         return $this;
  39.     }
  40.     public function getFiles(): ?array
  41.     {
  42.         return $this->files;
  43.     }
  44.     public function setFiles(?array $files): static
  45.     {
  46.         $this->files $files;
  47.         return $this;
  48.     }
  49.     public function getAuthor(): ?User
  50.     {
  51.         return $this->author;
  52.     }
  53.     public function setAuthor(?User $author): static
  54.     {
  55.         $this->author $author;
  56.         return $this;
  57.     }
  58.     public function getMessage(): ?string
  59.     {
  60.         return $this->message;
  61.     }
  62.     public function setMessage(string $message): static
  63.     {
  64.         $this->message $message;
  65.         return $this;
  66.     }
  67. }