src/Entity/UserAddressing.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserAddressingRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClassUserAddressingRepository::class)]
  7. class UserAddressing
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private ?int $id;
  13.     #[ORM\ManyToOne(targetEntityUserInfo::class)]
  14.     private ?UserInfo $userInfo;
  15.     #[ORM\ManyToOne(targetEntityAddressing::class)]
  16.     private ?Addressing $addressing;
  17.     #[ORM\Column(type'string'length255)]
  18.     private ?string $detail;
  19.     #[ORM\Column(type'string'length255)]
  20.     private ?string $microDistrict;
  21.     #[ORM\ManyToOne(targetEntityGlobalConstant::class)]
  22.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  23.     #[Groups(['list'])]
  24.     private ?GlobalConstant $state;
  25.     #[ORM\ManyToOne(targetEntityGlobalConstant::class)]
  26.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  27.     #[Groups(['list'])]
  28.     private ?GlobalConstant $stateType;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getUserInfo(): ?UserInfo
  34.     {
  35.         return $this->userInfo;
  36.     }
  37.     public function setUserInfo(?UserInfo $userInfo): self
  38.     {
  39.         $this->userInfo $userInfo;
  40.         return $this;
  41.     }
  42.     public function getAddressing(): ?Addressing
  43.     {
  44.         return $this->addressing;
  45.     }
  46.     public function setAddressing(?Addressing $addressing): self
  47.     {
  48.         $this->addressing $addressing;
  49.         return $this;
  50.     }
  51.     public function getDetail(): ?string
  52.     {
  53.         return $this->detail;
  54.     }
  55.     public function setDetail(string $detail): self
  56.     {
  57.         $this->detail $detail;
  58.         return $this;
  59.     }
  60.     public function getState(): ?GlobalConstant
  61.     {
  62.         return $this->state;
  63.     }
  64.     public function setState(?GlobalConstant $state): self
  65.     {
  66.         $this->state $state;
  67.         return $this;
  68.     }
  69.     public function getMicroDistrict(): ?string
  70.     {
  71.         return $this->microDistrict;
  72.     }
  73.     public function setMicroDistrict(string $microDistrict): self
  74.     {
  75.         $this->microDistrict $microDistrict;
  76.         return $this;
  77.     }
  78.     public function getStateType(): ?GlobalConstant
  79.     {
  80.         return $this->stateType;
  81.     }
  82.     public function setStateType(?GlobalConstant $stateType): self
  83.     {
  84.         $this->stateType $stateType;
  85.         return $this;
  86.     }
  87. }