src/Entity/AdmissionUserComment.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AdmissionUserCommentRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. #[ORM\Entity(repositoryClassAdmissionUserCommentRepository::class)]
  8. class AdmissionUserComment
  9. {
  10.     public const STATE_CONTACT_PENDING 'contact_pending';
  11.     public const STATE_CONTACT_SUCCESS 'contact_success';
  12.     public const TYPE_COMMENT_PRIMARY 'bg-primary';
  13.     public const TYPE_COMMENT_SUCCESS 'bg-success';
  14.     public const TYPE_COMMENT_WARNING 'bg-warning';
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column(type'integer')]
  18.     #[Groups(['list','au'])]
  19.     private ?int $id;
  20.     #[ORM\ManyToOne(targetEntityAdmissionUser::class)]
  21.     #[Groups(['list'])]
  22.     private ?AdmissionUser $admissionUser;
  23.     #[ORM\Column(type'string'length255)]
  24.     #[Groups(['list','au'])]
  25.     private ?string $comment;
  26.     #[ORM\Column(type'string'length20)]
  27.     #[Groups(['list','au'])]
  28.     private ?string $state;
  29.     #[ORM\Column(type'string'length20)]
  30.     #[Groups(['list','au'])]
  31.     private ?string $type;
  32.     #[ORM\ManyToOne(targetEntityUser::class)]
  33.     #[Groups(['list','au'])]
  34.     private ?User $userCreated;
  35.     #[ORM\Column(type'datetime')]
  36.     #[Groups(['list','au'])]
  37.     private ?\DateTimeInterface $timeCreated;
  38.     #[ORM\Column(type'integer')]
  39.     #[Groups(['list','au'])]
  40.     private ?int $commentIndex;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getAdmissionUser(): ?AdmissionUser
  46.     {
  47.         return $this->admissionUser;
  48.     }
  49.     public function setAdmissionUser(?AdmissionUser $admissionUser): self
  50.     {
  51.         $this->admissionUser $admissionUser;
  52.         return $this;
  53.     }
  54.     public function getComment(): ?string
  55.     {
  56.         return $this->comment;
  57.     }
  58.     public function setComment(string $comment): self
  59.     {
  60.         $this->comment $comment;
  61.         return $this;
  62.     }
  63.     public function getState(): ?string
  64.     {
  65.         return $this->state;
  66.     }
  67.     public function setState(string $state): self
  68.     {
  69.         $this->state $state;
  70.         return $this;
  71.     }
  72.     public function getType(): ?string
  73.     {
  74.         return $this->type;
  75.     }
  76.     public function setType(string $type): self
  77.     {
  78.         $this->type $type;
  79.         return $this;
  80.     }
  81.     public function getTimeCreated(): ?\DateTimeInterface
  82.     {
  83.         return $this->timeCreated;
  84.     }
  85.     public function setTimeCreated(\DateTimeInterface $timeCreated): self
  86.     {
  87.         $this->timeCreated $timeCreated;
  88.         return $this;
  89.     }
  90.     public function getUserCreated(): ?User
  91.     {
  92.         return $this->userCreated;
  93.     }
  94.     public function setUserCreated(?User $userCreated): self
  95.     {
  96.         $this->userCreated $userCreated;
  97.         return $this;
  98.     }
  99.     public function getCommentIndex(): ?int
  100.     {
  101.         return $this->commentIndex;
  102.     }
  103.     public function setCommentIndex(int $commentIndex): self
  104.     {
  105.         $this->commentIndex $commentIndex;
  106.         return $this;
  107.     }
  108. }