<?php
namespace App\Entity;
use App\Repository\UserFamilyInfoRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: UserFamilyInfoRepository::class)]
class UserFamilyInfo
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\ManyToOne(targetEntity: UserInfo::class)]
private ?UserInfo $userInfo;
#[ORM\ManyToOne(targetEntity: GlobalConstant::class)]
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
private ?GlobalConstant $relationType;
#[ORM\Column(type: 'string', length: 50)]
private ?string $lastname;
#[ORM\Column(type: 'string', length: 50)]
private ?string $firstname;
#[ORM\Column(type: 'string', length: 180)]
private ?string $email;
#[ORM\Column(type: 'string', length: 30, nullable: true)]
private ?string $mobile;
#[ORM\Column(type: 'string', length: 255)]
private ?string $workState;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private ?string $registerNumber;
public function getId(): ?int
{
return $this->id;
}
public function getUserInfo(): ?UserInfo
{
return $this->userInfo;
}
public function setUserInfo(?UserInfo $userInfo): self
{
$this->userInfo = $userInfo;
return $this;
}
public function getRelationType(): ?GlobalConstant
{
return $this->relationType;
}
public function setRelationType(?GlobalConstant $relationType): self
{
$this->relationType = $relationType;
return $this;
}
public function getLastname(): ?string
{
return $this->lastname;
}
public function setLastname(string $lastname): self
{
$this->lastname = $lastname;
return $this;
}
public function getFirstname(): ?string
{
return $this->firstname;
}
public function setFirstname(string $firstname): self
{
$this->firstname = $firstname;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(string $email): self
{
$this->email = $email;
return $this;
}
public function getMobile(): ?string
{
return $this->mobile;
}
public function setMobile(string $mobile): self
{
$this->mobile = $mobile;
return $this;
}
public function getWorkState(): ?string
{
return $this->workState;
}
public function setWorkState(string $workState): self
{
$this->workState = $workState;
return $this;
}
public function getRegisterNumber(): ?string
{
return $this->registerNumber;
}
public function setRegisterNumber(string $registerNumber): self
{
$this->registerNumber = $registerNumber;
return $this;
}
}