src/Server/Server.php
public function unlink(
        string $name,
        Identity $identity,
        SetInterface $links
    ): ServerInterface {
        if ((string) $links->type() !== Link::class) {
            throw new \TypeError(sprintf(
                'Argument 3 must be of type SetInterface<%s>',
                Link::class
            ));
        }

        if ($links->size() === 0) {
            throw new DomainException;
        }

        $definition = $this->capabilities->get($name);
        $this->validateLinks($definition, $links);
        ($this->fulfill)(
            new Request(
                $this->resolveUrl(
                    $definition->url(),
                    $identity
                ),
                Method::unlink(),
                new ProtocolVersion(1, 1),
                Headers::of(
                    $this->generateAcceptHeader(),
                    $this->generateLinkHeader($links)
                )
            )
        );

        return $this;
    }
public function unlink(
        string $name,
        Identity $identity,
        SetInterface $links
    ): ServerInterface {
        if ((string) $links->type() !== Link::class) {
            throw new \TypeError(sprintf(
                'Argument 3 must be of type SetInterface<%s>',
                Link::class
            ));
        }

        if ($links->size() === 0) {
            throw new DomainException;
        }

        $definition = $this->capabilities->get($name);
        $this->validateLinks($definition, $links);
        ($this->fulfill)(
            new Request(
                $this->resolveUrl(
                    $definition->url(),
                    $identity
                ),
                Method::unlink(),
                new ProtocolVersion(1, 1),
                Headers::of(
                    $this->generateAcceptHeader(),
                    $this->generateLinkHeader($links)
                )
            )
        );

        return $this;
    }
{@inheritdoc}