src/Entity/ClientType.php line 13
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use App\Repository\ClientTypeRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ClientTypeRepository::class)]#[ApiResource]class ClientType{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $clientTypeLabel = null;#[ORM\OneToMany(mappedBy: 'thirdPartyClientType', targetEntity: ThirdParty::class, orphanRemoval: true)]private Collection $thirdParties;public function __construct(){$this->thirdParties = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getClientTypeLabel(): ?string{return $this->clientTypeLabel;}public function setClientTypeLabel(string $clientTypeLabel): self{$this->clientTypeLabel = $clientTypeLabel;return $this;}/*** @return Collection<int, ThirdParty>*/public function getThirdParties(): Collection{return $this->thirdParties;}public function addThirdParty(ThirdParty $thirdParty): self{if (!$this->thirdParties->contains($thirdParty)) {$this->thirdParties->add($thirdParty);$thirdParty->setThirdPartyClientType($this);}return $this;}public function removeThirdParty(ThirdParty $thirdParty): self{if ($this->thirdParties->removeElement($thirdParty)) {// set the owning side to null (unless already changed)if ($thirdParty->getThirdPartyClientType() === $this) {$thirdParty->setThirdPartyClientType(null);}}return $this;}}