<?php
namespace App\Entity;
use App\Repository\UserAddressingRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: UserAddressingRepository::class)]
class UserAddressing
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private ?int $id;
#[ORM\ManyToOne(targetEntity: UserInfo::class)]
private ?UserInfo $userInfo;
#[ORM\ManyToOne(targetEntity: Addressing::class)]
private ?Addressing $addressing;
#[ORM\Column(type: 'string', length: 255)]
private ?string $detail;
#[ORM\Column(type: 'string', length: 255)]
private ?string $microDistrict;
#[ORM\ManyToOne(targetEntity: GlobalConstant::class)]
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
#[Groups(['list'])]
private ?GlobalConstant $state;
#[ORM\ManyToOne(targetEntity: GlobalConstant::class)]
#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]
#[Groups(['list'])]
private ?GlobalConstant $stateType;
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 getAddressing(): ?Addressing
{
return $this->addressing;
}
public function setAddressing(?Addressing $addressing): self
{
$this->addressing = $addressing;
return $this;
}
public function getDetail(): ?string
{
return $this->detail;
}
public function setDetail(string $detail): self
{
$this->detail = $detail;
return $this;
}
public function getState(): ?GlobalConstant
{
return $this->state;
}
public function setState(?GlobalConstant $state): self
{
$this->state = $state;
return $this;
}
public function getMicroDistrict(): ?string
{
return $this->microDistrict;
}
public function setMicroDistrict(string $microDistrict): self
{
$this->microDistrict = $microDistrict;
return $this;
}
public function getStateType(): ?GlobalConstant
{
return $this->stateType;
}
public function setStateType(?GlobalConstant $stateType): self
{
$this->stateType = $stateType;
return $this;
}
}