| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?php
- /**
- * This file is auto-generated.
- */
- declare(strict_types=1);
- namespace App\Entity\Token;
- use ApiPlatform\Metadata\ApiResource;
- use App;
- use App\Entity\Access\Access;
- use DateTimeInterface;
- use Doctrine\ORM\Mapping as ORM;
- #[ApiResource(operations: [])]
- #[ORM\Entity]
- class Token
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private int $id;
- #[ORM\Column]
- private mixed $type;
- #[ORM\Column(type: 'date', options: ['nullable' => true])]
- private ?DateTimeInterface $expiryDate;
- #[ORM\Column]
- private mixed $token;
- #[ORM\Column(type: 'date', options: ['nullable' => true])]
- private ?DateTimeInterface $createDate;
- #[ORM\Column(type: 'date', options: ['nullable' => true])]
- private ?DateTimeInterface $updateDate;
- #[ORM\Column(type: 'integer', options: ['nullable' => true])]
- private int $legacyId;
- #[ORM\Column(type: 'integer', options: ['nullable' => true])]
- private int $createdBy;
- #[ORM\Column(type: 'integer', options: ['nullable' => true])]
- private int $updatedBy;
- #[ORM\Column(options: ['default' => false])]
- private bool $draft;
- #[ORM\ManyToOne(targetEntity: Access::class, cascade: [], inversedBy: 'tokens')]
- #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false, onDelete: 'SET NULL')]
- private App\Entity\Access\Access $access;
- function getId(): int
- {
- return $this->id;
- }
- function setId(int $id): self
- {
- $this->id = $id;
- return $this;
- }
- function getType(): mixed
- {
- return $this->type;
- }
- function setType(mixed $type): self
- {
- $this->type = $type;
- return $this;
- }
- function getExpiryDate(): DateTimeInterface
- {
- return $this->expiryDate;
- }
- function setExpiryDate(DateTimeInterface $expiryDate): self
- {
- $this->expiryDate = $expiryDate;
- return $this;
- }
- function getToken(): mixed
- {
- return $this->token;
- }
- function setToken(mixed $token): self
- {
- $this->token = $token;
- return $this;
- }
- function getCreateDate(): DateTimeInterface
- {
- return $this->createDate;
- }
- function setCreateDate(DateTimeInterface $createDate): self
- {
- $this->createDate = $createDate;
- return $this;
- }
- function getUpdateDate(): DateTimeInterface
- {
- return $this->updateDate;
- }
- function setUpdateDate(DateTimeInterface $updateDate): self
- {
- $this->updateDate = $updateDate;
- return $this;
- }
- function getLegacyId(): int
- {
- return $this->legacyId;
- }
- function setLegacyId(int $legacyId): self
- {
- $this->legacyId = $legacyId;
- return $this;
- }
- function getCreatedBy(): int
- {
- return $this->createdBy;
- }
- function setCreatedBy(int $createdBy): self
- {
- $this->createdBy = $createdBy;
- return $this;
- }
- function getUpdatedBy(): int
- {
- return $this->updatedBy;
- }
- function setUpdatedBy(int $updatedBy): self
- {
- $this->updatedBy = $updatedBy;
- return $this;
- }
- function getDraft(): bool
- {
- return $this->draft;
- }
- function setDraft(bool $draft): self
- {
- $this->draft = $draft;
- return $this;
- }
- function getAccess(): App\Entity\Access\Access
- {
- return $this->access;
- }
- function setAccess(App\Entity\Access\Access $access): self
- {
- $this->access = $access;
- return $this;
- }
- }
|