src/Entity/Addressing.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AddressingRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClassAddressingRepository::class)]
  7. class Addressing
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     #[Groups(['list'])]
  13.     private ?int $id;
  14.     #[ORM\Column(type'integer')]
  15.     #[Groups(['list'])]
  16.     private ?int $parentId;
  17.     #[ORM\Column(type'string'length100)]
  18.     #[Groups(['list'])]
  19.     private ?string $name;
  20.     #[ORM\ManyToOne(targetEntityGlobalConstant::class)]
  21.     #[ORM\JoinColumn(nullabletrueonDelete'SET NULL')]
  22.     #[Groups(['list'])]
  23.     private ?GlobalConstant $addressingType;
  24.     #[ORM\Column(type'string'length50nullabletrue)]
  25.     #[Groups(['list'])]
  26.     private ?string $orderKey;
  27.     #[ORM\Column(type'boolean')]
  28.     private ?bool $isDeleted;
  29.     public function __construct()
  30.     {
  31.         $this->isDeleted false;
  32.     }
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getParentId(): ?int
  38.     {
  39.         return $this->parentId;
  40.     }
  41.     public function setParentId(int $parentId): self
  42.     {
  43.         $this->parentId $parentId;
  44.         return $this;
  45.     }
  46.     public function getName(): ?string
  47.     {
  48.         return $this->name;
  49.     }
  50.     public function setName(string $name): self
  51.     {
  52.         $this->name $name;
  53.         return $this;
  54.     }
  55.     public function getOrderKey(): ?string
  56.     {
  57.         return $this->orderKey;
  58.     }
  59.     public function setOrderKey(string $orderKey): self
  60.     {
  61.         $this->orderKey $orderKey;
  62.         return $this;
  63.     }
  64.     public function getIsDeleted(): ?bool
  65.     {
  66.         return $this->isDeleted;
  67.     }
  68.     public function setIsDeleted(bool $isDeleted): self
  69.     {
  70.         $this->isDeleted $isDeleted;
  71.         return $this;
  72.     }
  73.     public function getAddressingType(): ?GlobalConstant
  74.     {
  75.         return $this->addressingType;
  76.     }
  77.     public function setAddressingType(?GlobalConstant $addressingType): self
  78.     {
  79.         $this->addressingType $addressingType;
  80.         return $this;
  81.     }
  82.     public function isIsDeleted(): ?bool
  83.     {
  84.         return $this->isDeleted;
  85.     }
  86. }