src/Entity/UserDetails.php line 10
<?phpnamespace App\Entity;use App\Repository\UserDetailsRepository;use DateTimeImmutable;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: UserDetailsRepository::class)]class UserDetails{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]protected ?int $id = null;#[ORM\OneToOne(mappedBy: 'userdetails', targetEntity: User::class)]protected User $user;#[ORM\Column(nullable: true)]private ?int $img_id = null;#[ORM\Column(length: 255, nullable: true)]private ?string $register_ip = null;#[ORM\Column(length: 24, nullable: true)]private ?string $title = null;#[ORM\Column(length: 64, nullable: true)]private ?string $first_name = null;#[ORM\Column(length: 64, nullable: true)]private ?string $last_name = null;#[ORM\Column(length: 128, nullable: true)]private ?string $company = null;#[ORM\Column(length: 10, nullable: true)]private ?string $zip = null;#[ORM\Column(length: 125, nullable: true)]private ?string $country = null;#[ORM\Column(length: 125, nullable: true)]private ?string $street = null;#[ORM\Column(length: 12, nullable: true)]private ?string $hnr = null;#[ORM\Column(length: 64, nullable: true)]private ?string $phone = null;#[ORM\Column(length: 64, nullable: true)]private ?string $mobil = null;#[ORM\Column(length: 255, nullable: true)]private ?string $notiz = null;#[ORM\Column]private ?DateTimeImmutable $created_at = null;#[ORM\Column]private ?bool $change_pw = null;#[ORM\Column]private ?bool $aktiv = null;#[ORM\Column( options: ['default' => false])]private ?bool $must_validated = null;public function __construct(){$this->created_at = new DateTimeImmutable();}public function getId(): ?int{return $this->id;}public function getImgId(): ?int{return $this->img_id;}public function setImgId(?int $img_id): self{$this->img_id = $img_id;return $this;}public function getRegisterIp(): ?string{return $this->register_ip;}public function setRegisterIp(?string $register_ip): self{$this->register_ip = $register_ip;return $this;}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): self{$this->title = $title;return $this;}public function getFirstName(): ?string{return $this->first_name;}public function setFirstName(?string $first_name): self{$this->first_name = $first_name;return $this;}public function getLastName(): ?string{return $this->last_name;}public function setLastName(?string $last_name): self{$this->last_name = $last_name;return $this;}public function getCompany(): ?string{return $this->company;}public function setCompany(?string $company): self{$this->company = $company;return $this;}public function getZip(): ?string{return $this->zip;}public function setZip(?string $zip): self{$this->zip = $zip;return $this;}public function getCountry(): ?string{return $this->country;}public function setCountry(?string $country): self{$this->country = $country;return $this;}public function getStreet(): ?string{return $this->street;}public function setStreet(?string $street): self{$this->street = $street;return $this;}public function getHnr(): ?string{return $this->hnr;}public function setHnr(?string $hnr): self{$this->hnr = $hnr;return $this;}public function getPhone(): ?string{return $this->phone;}public function setPhone(?string $phone): self{$this->phone = $phone;return $this;}public function getMobil(): ?string{return $this->mobil;}public function setMobil(?string $mobil): self{$this->mobil = $mobil;return $this;}public function getNotiz(): ?string{return $this->notiz;}public function setNotiz(?string $notiz): self{$this->notiz = $notiz;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 __toString(){$format = "UserDetails (id: %s, user_id: %s, register_ip: %s, street: %s, city: %s, country: %s)";return sprintf($format, $this->id, $this->user_id,$this->register_ip, $this->street, $this->country);}*/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->setUserdetails(null);}// set the owning side of the relation if necessaryif ($user !== null && $user->getUserdetails() !== $this) {$user->setUserdetails($this);}$this->user = $user;return $this;}public function isChangePw(): ?bool{return $this->change_pw;}public function setChangePw(bool $change_pw): self{$this->change_pw = $change_pw;return $this;}public function isAktiv(): ?bool{return $this->aktiv;}public function setAktiv(bool $aktiv): self{$this->aktiv = $aktiv;return $this;}public function isMustValidated(): ?bool{return $this->must_validated;}public function setMustValidated(?bool $must_validated): self{$this->must_validated = $must_validated;return $this;}}