src/Entity/Link.php line 15
<?phpnamespace App\Entity;use ApiPlatform\Core\Annotation\ApiFilter;use ApiPlatform\Core\Annotation\ApiResource;use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;use App\Repository\LinkRepository;use Doctrine\ORM\Mapping as ORM;use App\Entity\LinkType;#[ApiResource]#[ApiFilter(SearchFilter::class, properties: ['linkType' => 'exact'])]#[ORM\Entity(repositoryClass: LinkRepository::class)]class Link implements \Stringable{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private $id;#[ORM\Column(type: 'string', length: 255)]private $title;#[ORM\Column(type: 'string', length: 255)]private $absoluteUrl;#[ORM\Column(type: 'string', length: 255)]private $originEntity="#";#[ORM\ManyToOne(targetEntity: LinkType::class, inversedBy: 'links', cascade: ['persist'])]private $linkType;public function __toString(): string{return (string) $this->title;}public function getId(): ?int{return $this->id;}/*** Get the value of title*/public function getTitle(){return $this->title;}/*** Set the value of title** @return self*/public function setTitle($title){$this->title = $title;return $this;}/*** Get the value of absoluteUrl*/public function getAbsoluteUrl(){return $this->absoluteUrl;}/*** Set the value of absoluteUrl** @return self*/public function setAbsoluteUrl($absoluteUrl){$this->absoluteUrl = $absoluteUrl;return $this;}/*** Get the value of originEntity*/public function getOriginEntity(){return $this->originEntity;}/*** Set the value of originEntity** @return self*/public function setOriginEntity($originEntity){$this->originEntity = $originEntity;return $this;}/*** Get the value of linkType*/public function getLinkType(){return $this->linkType;}/*** Set the value of linkType** @return self*/public function setLinkType($linkType){$this->linkType = $linkType;return $this;}}