src/Entity/GroupAncestorDetails.php line 10
<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use App\Repository\GroupAncestorDetailsRepository;use Symfony\Component\Serializer\Annotation\Groups;#[ORM\Entity(repositoryClass: GroupAncestorDetailsRepository::class)]class GroupAncestorDetails{#[ORM\Id]#[ORM\Column]#[Groups(['groupAncestor'])]private ?int $id = null;#[ORM\ManyToOne(targetEntity: self::class)]#[ORM\JoinColumn(nullable: false)]private ?self $groupAncestor = null;#[ORM\Column(length: 255)]#[Groups(['groupAncestor'])]private ?string $groupName = null;#[ORM\Column]#[Groups(['groupAncestor'])]private ?int $groupLevelId = null;#[ORM\Column(length: 255)]#[Groups(['groupAncestor'])]private ?string $groupLevelName = null;#[ORM\Column(length: 255)]#[Groups(['groupAncestor'])]private ?string $groupTypeName = null;public function setId(int $id): self{$this->id = $id;return $this;}public function getId(): ?int{return $this->id;}public function getGroupName(): ?string{return $this->groupName;}public function setGroupName(string $groupName): self{$this->groupName = $groupName;return $this;}public function getGroupLevelId(): ?int{return $this->groupLevelId;}public function setGroupLevelId(int $groupLevelId): self{$this->groupLevelId = $groupLevelId;return $this;}public function getGroupLevelName(): ?string{return $this->groupLevelName;}public function setGroupLevelName(string $groupLevelName): self{$this->groupLevelName = $groupLevelName;return $this;}public function getGroupTypeName(): ?string{return $this->groupTypeName;}public function setGroupTypeName(string $groupTypeName): self{$this->groupTypeName = $groupTypeName;return $this;}#[Groups(['groupAncestor'])]public function getGroupAncestorId(): ?int{return $this->groupAncestor->getId();}public function getGroupAncestor(): ?self{return $this->groupAncestor;}public function setGroupAncestor(?self $groupAncestor): static{$this->groupAncestor = $groupAncestor;return $this;}}