src/Entity/PortalFeature.php line 16
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use App\Repository\PortalFeatureRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: PortalFeatureRepository::class)]#[ApiResource(mercure: true)]class PortalFeature{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $name = null;#[ORM\Column(type: Types::TEXT)]private ?string $description = null;#[ORM\ManyToMany(targetEntity: PortalLicense::class, mappedBy: 'portalFeatures')]private Collection $portalLicenses;public function __construct(){$this->portalLicenses = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function __toString(): string{return $this->name;}public function getName(): ?string{return $this->name;}public function setName(string $name): self{$this->name = $name;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(string $description): self{$this->description = $description;return $this;}/*** @return Collection<int, PortalLicense>*/public function getPortalLicenses(): Collection{return $this->portalLicenses;}public function addPortalLicense(PortalLicense $portalLicense): self{if (!$this->portalLicenses->contains($portalLicense)) {$this->portalLicenses->add($portalLicense);}return $this;}public function removePortalLicense(PortalLicense $portalLicense): self{$this->portalLicenses->removeElement($portalLicense);return $this;}}