src/Entity/MessengerMessages.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MessengerMessagesRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassMessengerMessagesRepository::class)]
  7. class MessengerMessages
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::TEXT)]
  14.     private ?string $body null;
  15.     #[ORM\Column(typeTypes::TEXT)]
  16.     private ?string $headers null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $queue_name null;
  19.     #[ORM\Column]
  20.     private ?\DateTimeImmutable $created_at null;
  21.     #[ORM\Column]
  22.     private ?\DateTimeImmutable $available_at null;
  23.     #[ORM\Column(nullabletrue)]
  24.     private ?\DateTimeImmutable $delivered_at null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getBody(): ?string
  30.     {
  31.         return $this->body;
  32.     }
  33.     public function setBody(string $body): static
  34.     {
  35.         $this->body $body;
  36.         return $this;
  37.     }
  38.     public function getHeaders(): ?string
  39.     {
  40.         return $this->headers;
  41.     }
  42.     public function setHeaders(string $headers): static
  43.     {
  44.         $this->headers $headers;
  45.         return $this;
  46.     }
  47.     public function getQueueName(): ?string
  48.     {
  49.         return $this->queue_name;
  50.     }
  51.     public function setQueueName(string $queue_name): static
  52.     {
  53.         $this->queue_name $queue_name;
  54.         return $this;
  55.     }
  56.     public function getCreatedAt(): ?\DateTimeImmutable
  57.     {
  58.         return $this->created_at;
  59.     }
  60.     public function setCreatedAt(\DateTimeImmutable $created_at): static
  61.     {
  62.         $this->created_at $created_at;
  63.         return $this;
  64.     }
  65.     public function getAvailableAt(): ?\DateTimeImmutable
  66.     {
  67.         return $this->available_at;
  68.     }
  69.     public function setAvailableAt(\DateTimeImmutable $available_at): static
  70.     {
  71.         $this->available_at $available_at;
  72.         return $this;
  73.     }
  74.     public function getDeliveredAt(): ?\DateTimeImmutable
  75.     {
  76.         return $this->delivered_at;
  77.     }
  78.     public function setDeliveredAt(?\DateTimeImmutable $delivered_at): static
  79.     {
  80.         $this->delivered_at $delivered_at;
  81.         return $this;
  82.     }
  83. }