src/Server/Server.php
private function validateLinks(Definition $definition, SetInterface $links): void
    {
        $links->foreach(function(Link $link) use ($definition): void {
            if (!$definition->allowsLink($link)) {
                throw new NormalizationException;
            }
        });
    }
private function validateLinks(Definition $definition, SetInterface $links): void
    {
        $links->foreach(function(Link $link) use ($definition): void {
            if (!$definition->allowsLink($link)) {
                throw new NormalizationException;
            }
        });
    }
@param SetInterface<link> $links

@throws NormalizationException