src/Entity/SyncQueue.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SyncQueueRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSyncQueueRepository::class)]
  6. #[ORM\Table(name'sync_queue')]
  7. class SyncQueue
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length50)]
  14.     private ?string $entityType null;
  15.     #[ORM\Column]
  16.     private ?int $entityId null;
  17.     #[ORM\Column(length10)]
  18.     private ?string $action null;
  19.     #[ORM\Column]
  20.     private ?\DateTimeImmutable $createdAt null;
  21.     #[ORM\Column]
  22.     private ?bool $processed false;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getEntityType(): ?string
  28.     {
  29.         return $this->entityType;
  30.     }
  31.     public function setEntityType(string $entityType): self
  32.     {
  33.         $this->entityType $entityType;
  34.         return $this;
  35.     }
  36.     public function getEntityId(): ?int
  37.     {
  38.         return $this->entityId;
  39.     }
  40.     public function setEntityId(int $entityId): self
  41.     {
  42.         $this->entityId $entityId;
  43.         return $this;
  44.     }
  45.     public function getAction(): ?string
  46.     {
  47.         return $this->action;
  48.     }
  49.     public function setAction(string $action): self
  50.     {
  51.         $this->action $action;
  52.         return $this;
  53.     }
  54.     public function getCreatedAt(): ?\DateTimeImmutable
  55.     {
  56.         return $this->createdAt;
  57.     }
  58.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  59.     {
  60.         $this->createdAt $createdAt;
  61.         return $this;
  62.     }
  63.     public function isProcessed(): ?bool
  64.     {
  65.         return $this->processed;
  66.     }
  67.     public function setProcessed(bool $processed): self
  68.     {
  69.         $this->processed $processed;
  70.         return $this;
  71.     }
  72. }