src/Entity/UserRegister.php line 10
<?phpnamespace App\Entity;use App\Repository\UserRegisterRepository;use DateTimeImmutable;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UserRegisterRepository::class)]class UserRegister{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column]private ?int $user_id = null;#[ORM\OneToOne(mappedBy: 'register', targetEntity: User::class)]protected User $user;#[ORM\Column(length: 125, nullable: true)]private ?string $registercode = null;#[ORM\Column(length: 125, nullable: true)]private ?string $passwordcode = null;#[ORM\Column(length: 12, nullable: true)]private ?string $code_time = null;#[ORM\Column(length: 12, nullable: true)]private ?string $activated_time = null;#[ORM\Column]private ?DateTimeImmutable $created_at = null;#[ORM\Column(options: ['default' => false])]private ?bool $is_new = null;public function __construct(){$this->created_at = new DateTimeImmutable();}public function getId(): ?int{return $this->id;}public function getUserId(): ?int{return $this->user_id;}public function setUserId(int $user_id): self{$this->user_id = $user_id;return $this;}public function getRegistercode(): ?string{return $this->registercode;}public function setRegistercode(?string $registercode): self{$this->registercode = $registercode;return $this;}public function getPasswordcode(): ?string{return $this->passwordcode;}public function setPasswordcode(?string $passwordcode): self{$this->passwordcode = $passwordcode;return $this;}public function getCodeTime(): ?string{return $this->code_time;}public function setCodeTime(?string $code_time): self{$this->code_time = $code_time;return $this;}public function getActivatedTime(): ?string{return $this->activated_time;}public function setActivatedTime(?string $activated_time): self{$this->activated_time = $activated_time;return $this;}public function getCreatedAt(): ?DateTimeImmutable{return $this->created_at;}public function setCreatedAt(DateTimeImmutable $created_at): self{$this->created_at = $created_at;return $this;}public function isIsNew(): ?bool{return $this->is_new;}public function setIsNew(bool $is_new): self{$this->is_new = $is_new;return $this;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): self{// unset the owning side of the relation if necessaryif ($user === null && $this->user !== null) {$this->user->setRegister(null);}// set the owning side of the relation if necessaryif ($user !== null && $user->getRegister() !== $this) {$user->setRegister($this);}$this->user = $user;return $this;}}