src/Entity/GlobalConstant.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GlobalConstantRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassGlobalConstantRepository::class)]
  7. class GlobalConstant
  8. {
  9.     const GRP_INFO_CHANNEL "info_channel";
  10.     const GRP_FAMILY_RELATION_TYPE "family_relation_type";
  11.     const GRP_DISABILITY_TYPE "disability_type";
  12.     const GRP_DISABILITY_REASON "disability_reason";
  13.     const GRP_WORK_SECTION "work_section";
  14.     const GRP_NATIONALITY "nationality";
  15.     const GRP_ADDRESSING_TYPE "addressing_type";
  16.     const GRP_USER_ADDRESSING_STATE "user_addressing_state";
  17.     const GRP_USER_ADDRESSING_STATE_TYPE "user_addressing_state_type";
  18.     const GRP_USER_EDUCATION_DEGREE_TYPE "user_education_degree_type";
  19.     const GRP_USER_FILE_TYPE "user_file_type";
  20.     const GRP_DEGREE_INFO_TYPE "degree_info_type";
  21.     const GRP_DEGREE_PROFESSION_GROUP_NAME "degree_profession_group_name";
  22.     const GRP_DEGREE_INFO_GROUP_NAME "degree_info_group_name";
  23.     #[ORM\Id]
  24.     #[ORM\GeneratedValue]
  25.     #[ORM\Column(type'integer')]
  26.     private ?int $id;
  27.     #[ORM\Column(type'string'length30)]
  28.     private ?string $groupName;
  29.     #[ORM\Column(type'string'length100)]
  30.     private ?string $name;
  31.     #[ORM\Column(type'string'length255)]
  32.     private ?string $description;
  33.     #[ORM\Column(type'datetime')]
  34.     private ?\DateTimeInterface $timeCreated;
  35.     #[ORM\ManyToOne(targetEntityAdmission::class)]
  36.     private ?Admission $admission;
  37.     public function getAdmission(): ?Admission
  38.     {
  39.         return $this->admission;
  40.     }
  41.     public function setAdmission(?Admission $admission): self
  42.     {
  43.         $this->admission $admission;
  44.         return $this;
  45.     }
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getGroupName(): ?string
  51.     {
  52.         return $this->groupName;
  53.     }
  54.     public function setGroupName(string $groupName): self
  55.     {
  56.         $this->groupName $groupName;
  57.         return $this;
  58.     }
  59.     public function getName(): ?string
  60.     {
  61.         return $this->name;
  62.     }
  63.     public function setName(string $name): self
  64.     {
  65.         $this->name $name;
  66.         return $this;
  67.     }
  68.     public function getDescription(): ?string
  69.     {
  70.         return $this->description;
  71.     }
  72.     public function setDescription(string $description): self
  73.     {
  74.         $this->description $description;
  75.         return $this;
  76.     }
  77.     public function getTimeCreated(): ?\DateTimeInterface
  78.     {
  79.         return $this->timeCreated;
  80.     }
  81.     public function setTimeCreated(\DateTimeInterface $timeCreated): self
  82.     {
  83.         $this->timeCreated $timeCreated;
  84.         return $this;
  85.     }
  86. }