src/Entity/Member.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MemberRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassMemberRepository::class)]
  7. #[ORM\Table(name"dtb_member")]
  8. class Member
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(nullabletrue)]
  15.     private ?int $work_id null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private ?int $authority_id null;
  18.     #[ORM\ManyToOne(targetEntityMember::class)]
  19.     #[ORM\JoinColumn(name"creator_id"referencedColumnName"id"nullabletrue)]
  20.     private ?Member $Creator null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $name null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $department null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $login_id null;
  27.     #[ORM\Column(length255)]
  28.     private ?string $password null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $salt null;
  31.     #[ORM\Column]
  32.     private ?int $sort_no null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $two_factor_auth_key null;
  35.     #[ORM\Column]
  36.     private ?int $two_factor_auth_enabled null;
  37.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  38.     private ?\DateTimeInterface $create_date null;
  39.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  40.     private ?\DateTimeInterface $update_date null;
  41.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  42.     private ?\DateTimeInterface $login_date null;
  43.     #[ORM\Column(length255)]
  44.     private ?string $discriminator_type 'member';
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getWorkId(): ?int
  50.     {
  51.         return $this->work_id;
  52.     }
  53.     public function setWorkId(?int $work_id): static
  54.     {
  55.         $this->work_id $work_id;
  56.         return $this;
  57.     }
  58.     public function getAuthorityId(): ?int
  59.     {
  60.         return $this->authority_id;
  61.     }
  62.     public function setAuthorityId(?int $authority_id): static
  63.     {
  64.         $this->authority_id $authority_id;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Set the creator.
  69.      *
  70.      * @param Member|null $creator
  71.      * @return self
  72.      */
  73.     public function setCreator(?Member $creator): self
  74.     {
  75.         $this->Creator $creator;
  76.         return $this;
  77.     }
  78.     /**
  79.      * Get the creator.
  80.      *
  81.      * @return Member|null
  82.      */
  83.     public function getCreator(): ?Member
  84.     {
  85.         return $this->Creator;
  86.     }
  87.     public function getName(): ?string
  88.     {
  89.         return $this->name;
  90.     }
  91.     public function setName(?string $name): static
  92.     {
  93.         $this->name $name;
  94.         return $this;
  95.     }
  96.     public function getDepartment(): ?string
  97.     {
  98.         return $this->department;
  99.     }
  100.     public function setDepartment(?string $department): static
  101.     {
  102.         $this->department $department;
  103.         return $this;
  104.     }
  105.     public function getLoginId(): ?string
  106.     {
  107.         return $this->login_id;
  108.     }
  109.     public function setLoginId(string $login_id): static
  110.     {
  111.         $this->login_id $login_id;
  112.         return $this;
  113.     }
  114.     public function getPassword(): ?string
  115.     {
  116.         return $this->password;
  117.     }
  118.     public function setPassword(string $password): static
  119.     {
  120.         $this->password $password;
  121.         return $this;
  122.     }
  123.     public function getSalt(): ?string
  124.     {
  125.         return $this->salt;
  126.     }
  127.     public function setSalt(?string $salt): static
  128.     {
  129.         $this->salt $salt;
  130.         return $this;
  131.     }
  132.     public function getSortNo(): ?int
  133.     {
  134.         return $this->sort_no;
  135.     }
  136.     public function setSortNo(int $sort_no): static
  137.     {
  138.         $this->sort_no $sort_no;
  139.         return $this;
  140.     }
  141.     public function getTwoFactorAuthKey(): ?string
  142.     {
  143.         return $this->two_factor_auth_key;
  144.     }
  145.     public function setTwoFactorAuthKey(?string $two_factor_auth_key): static
  146.     {
  147.         $this->two_factor_auth_key $two_factor_auth_key;
  148.         return $this;
  149.     }
  150.     public function getTwoFactorAuthEnabled(): ?int
  151.     {
  152.         return $this->two_factor_auth_enabled;
  153.     }
  154.     public function setTwoFactorAuthEnabled(int $two_factor_auth_enabled): static
  155.     {
  156.         $this->two_factor_auth_enabled $two_factor_auth_enabled;
  157.         return $this;
  158.     }
  159.     public function getCreateDate(): ?\DateTimeInterface
  160.     {
  161.         return $this->create_date;
  162.     }
  163.     public function setCreateDate(\DateTimeInterface $create_date): static
  164.     {
  165.         $this->create_date $create_date;
  166.         return $this;
  167.     }
  168.     public function getUpdateDate(): ?\DateTimeInterface
  169.     {
  170.         return $this->update_date;
  171.     }
  172.     public function setUpdateDate(\DateTimeInterface $update_date): static
  173.     {
  174.         $this->update_date $update_date;
  175.         return $this;
  176.     }
  177.     public function getLoginDate(): ?\DateTimeInterface
  178.     {
  179.         return $this->login_date;
  180.     }
  181.     public function setLoginDate(?\DateTimeInterface $login_date): static
  182.     {
  183.         $this->login_date $login_date;
  184.         return $this;
  185.     }
  186.     public function getDiscriminatorType(): ?string
  187.     {
  188.         return $this->discriminator_type;
  189.     }
  190.     public function setDiscriminatorType(string $discriminator_type): static
  191.     {
  192.         $this->discriminator_type $discriminator_type;
  193.         return $this;
  194.     }
  195. }