src/Entity/AdmissionUser.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AdmissionUserRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. #[ORM\Entity(repositoryClassAdmissionUserRepository::class)]
  8. class AdmissionUser
  9. {
  10.     public const STATE_REGISTERED "R";
  11.     public const STATE_CONFIRM "C";
  12.     public const STATE_PENDING "P";
  13.     public const STATE_FILE_UPLOADED 'D';
  14.     public const STATE_SPEAKER '2';
  15.     public const STATE_POSTER '3';
  16.     public const STATE_DECLINE 'F';
  17.     public const PUB_STATE_NEW 'new';
  18.     public const PUB_STATE_PENDING 'pending';
  19.     public const PUB_STATE_AE 'pending_ae';
  20.     public const PUB_STATE_FE 'pending_fe';
  21.     public const PUB_STATE_REVIEWER 'pending_r';
  22.     public const PUB_STATE_DIRECTOR 'pending_d';
  23.     public const PUB_STATE_APPROVE 'approve';
  24.     public const PUB_STATE_DECLINE 'decline';
  25.     #[ORM\Id]
  26.     #[ORM\GeneratedValue]
  27.     #[ORM\Column(type'integer')]
  28.     #[Groups(['list','au','p','r'])]
  29.     private ?int $id;
  30.     #[ORM\ManyToOne(targetEntityAdmission::class)]
  31.     #[Groups(['list','au','p','r'])]
  32.     private ?Admission $admission;
  33.     #[ORM\ManyToOne(targetEntityUser::class)]
  34.     #[Groups(['list','au','p','r'])]
  35.     private ?User $user;
  36.     #[ORM\Column(type'string'length30nullabletrue)]
  37.     #[Groups(['list','au','p','r'])]
  38.     private ?string $satCode;
  39.     #[ORM\ManyToOne(targetEntityGlobalConstant::class)]
  40.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  41.     #[Groups(['list','au','p'])]
  42.     private ?GlobalConstant $infoChannel;
  43.     #[ORM\Column(type'integer'nullabletrue)]
  44.     #[Groups(['list','au','p'])]
  45.     private ?int $type;
  46.     #[ORM\Column(type'string'length1)]
  47.     #[Groups(['list','au','p','r'])]
  48.     private ?string $state;
  49.     #[ORM\Column(type'string'length20nullabletrue)]
  50.     #[Groups(['list','au','p','r'])]
  51.     private ?string $pubState;
  52.     #[ORM\Column(type'datetime')]
  53.     #[Groups(['list','au','p','r'])]
  54.     private ?\DateTimeInterface $timeCreated;
  55.     #[ORM\Column(type'datetime'nullabletrue)]
  56.     #[Groups(['list','au','p','r'])]
  57.     private ?\DateTimeInterface $timeUpdated;
  58.     #[ORM\ManyToOne(targetEntityPayment::class)]
  59.     #[Groups(['list','au'])]
  60.     private ?Payment $paymentRegisterFee;
  61.     #[ORM\ManyToOne(targetEntityPayment::class)]
  62.     #[Groups(['list','au'])]
  63.     private ?Payment $paymentCredit;
  64.     #[ORM\ManyToOne(targetEntityAdmissionRegister::class)]
  65.     #[Groups(['list','au','p'])]
  66.     private ?AdmissionRegister $admissionRegister;
  67.     #[ORM\ManyToOne(targetEntityAdmissionUserComment::class)]
  68.     #[Groups(['list','au','p'])]
  69.     private ?AdmissionUserComment $lastComment;
  70.     #[ORM\ManyToOne(targetEntityAdmissionDiscount::class)]
  71.     #[Groups(['list','au','p'])]
  72.     private ?AdmissionDiscount $admissionDiscount;
  73.     #[ORM\Column(type'integer'nullabletrue)]
  74.     #[Groups(['list','au','p','r'])]
  75.     private ?int $feId;
  76.     public function getId(): ?int
  77.     {
  78.         return $this->id;
  79.     }
  80.     public function getSatCode(): ?string
  81.     {
  82.         return $this->satCode;
  83.     }
  84.     public function setSatCode(string $satCode): self
  85.     {
  86.         $this->satCode $satCode;
  87.         return $this;
  88.     }
  89.     public function getState(): ?string
  90.     {
  91.         return $this->state;
  92.     }
  93.     public function setState(string $state): self
  94.     {
  95.         $this->state $state;
  96.         return $this;
  97.     }
  98.     public function getTimeCreated(): ?\DateTimeInterface
  99.     {
  100.         return $this->timeCreated;
  101.     }
  102.     public function setTimeCreated(\DateTimeInterface $timeCreated): self
  103.     {
  104.         $this->timeCreated $timeCreated;
  105.         return $this;
  106.     }
  107.     public function getAdmission(): ?Admission
  108.     {
  109.         return $this->admission;
  110.     }
  111.     public function setAdmission(?Admission $admission): self
  112.     {
  113.         $this->admission $admission;
  114.         return $this;
  115.     }
  116.     public function getUser(): ?User
  117.     {
  118.         return $this->user;
  119.     }
  120.     public function setUser(?User $user): self
  121.     {
  122.         $this->user $user;
  123.         return $this;
  124.     }
  125.     public function getInfoChannel(): ?GlobalConstant
  126.     {
  127.         return $this->infoChannel;
  128.     }
  129.     public function setInfoChannel(?GlobalConstant $infoChannel): self
  130.     {
  131.         $this->infoChannel $infoChannel;
  132.         return $this;
  133.     }
  134.     public function getPaymentRegisterFee(): ?Payment
  135.     {
  136.         return $this->paymentRegisterFee;
  137.     }
  138.     public function setPaymentRegisterFee(?Payment $paymentRegisterFee): self
  139.     {
  140.         $this->paymentRegisterFee $paymentRegisterFee;
  141.         return $this;
  142.     }
  143.     public function getPaymentCredit(): ?Payment
  144.     {
  145.         return $this->paymentCredit;
  146.     }
  147.     public function setPaymentCredit(?Payment $paymentCredit): self
  148.     {
  149.         $this->paymentCredit $paymentCredit;
  150.         return $this;
  151.     }
  152.     public function getAdmissionRegister(): ?AdmissionRegister
  153.     {
  154.         return $this->admissionRegister;
  155.     }
  156.     public function setAdmissionRegister(?AdmissionRegister $admissionRegister): self
  157.     {
  158.         $this->admissionRegister $admissionRegister;
  159.         return $this;
  160.     }
  161.     public function getLastComment(): ?AdmissionUserComment
  162.     {
  163.         return $this->lastComment;
  164.     }
  165.     public function setLastComment(?AdmissionUserComment $lastComment): self
  166.     {
  167.         $this->lastComment $lastComment;
  168.         return $this;
  169.     }
  170.     public function getAdmissionDiscount(): ?AdmissionDiscount
  171.     {
  172.         return $this->admissionDiscount;
  173.     }
  174.     public function setAdmissionDiscount(?AdmissionDiscount $admissionDiscount): self
  175.     {
  176.         $this->admissionDiscount $admissionDiscount;
  177.         return $this;
  178.     }
  179.     public function getType(): ?int
  180.     {
  181.         return $this->type;
  182.     }
  183.     public function setType(?int $type): self
  184.     {
  185.         $this->type $type;
  186.         return $this;
  187.     }
  188.     public function getPubState(): ?string
  189.     {
  190.         return $this->pubState;
  191.     }
  192.     public function setPubState(?string $pubState): self
  193.     {
  194.         $this->pubState $pubState;
  195.         return $this;
  196.     }
  197.     public function getFeId(): ?int
  198.     {
  199.         return $this->feId;
  200.     }
  201.     public function setFeId(?int $feId): self
  202.     {
  203.         $this->feId $feId;
  204.         return $this;
  205.     }
  206.     public function getTimeUpdated(): ?\DateTimeInterface
  207.     {
  208.         return $this->timeUpdated;
  209.     }
  210.     public function setTimeUpdated(\DateTimeInterface $timeUpdated): self
  211.     {
  212.         $this->timeUpdated $timeUpdated;
  213.         return $this;
  214.     }
  215. }