src/Entity/AdmissionConfig.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AdmissionConfRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClassAdmissionConfRepository::class)]
  7. class AdmissionConfig
  8. {
  9.     const ACTION_REGISTER 'register';
  10.     const ACTION_CONFIRM 'confirm';
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column(type'integer')]
  14.     #[Groups(['list'])]
  15.     private ?int $id;
  16.     #[ORM\ManyToOne(targetEntityAdmission::class, inversedBy'configs')]
  17.     private ?Admission $admission;
  18.     #[ORM\Column(type'boolean')]
  19.     #[Groups(['list'])]
  20.     private ?bool $enabled;
  21.     #[ORM\Column(type'string'length30)]
  22.     #[Groups(['list'])]
  23.     private ?string $action;
  24.     #[ORM\Column(type'json')]
  25.     #[Groups(['list'])]
  26.     private ?array $configData;
  27.     #[ORM\Column(type'boolean')]
  28.     private bool $isDeleted;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getAdmission(): ?Admission
  34.     {
  35.         return $this->admission;
  36.     }
  37.     public function setAdmission(?Admission $admission): self
  38.     {
  39.         $this->admission $admission;
  40.         return $this;
  41.     }
  42.     public function getEnabled(): ?bool
  43.     {
  44.         return $this->enabled;
  45.     }
  46.     public function setEnabled(bool $enabled): self
  47.     {
  48.         $this->enabled $enabled;
  49.         return $this;
  50.     }
  51.     public function getAction(): ?string
  52.     {
  53.         return $this->action;
  54.     }
  55.     public function setAction(string $action): self
  56.     {
  57.         $this->action $action;
  58.         return $this;
  59.     }
  60.     public function getConfigData(): ?array
  61.     {
  62.         return $this->configData;
  63.     }
  64.     public function setConfigData(array $configData): self
  65.     {
  66.         $this->configData $configData;
  67.         return $this;
  68.     }
  69.     public function isEnabled(): ?bool
  70.     {
  71.         return $this->enabled;
  72.     }
  73.     public function isIsDeleted(): ?bool
  74.     {
  75.         return $this->isDeleted;
  76.     }
  77.     public function setIsDeleted(?bool $isDeleted): self
  78.     {
  79.         $this->isDeleted $isDeleted;
  80.         return $this;
  81.     }
  82. }