links; } /** * {@inheritdoc} */ public function getLinksByRel($rel): iterable { return array_filter($this->links, fn(LinkInterface $link) => in_array($rel, $link->getRels())); } }