src/Hal/Serializer/ItemNormalizer.php
private function getRelationIri($rel): string
    {
        if (!(\is_array($rel) || \is_string($rel))) {
            throw new UnexpectedValueException('Expected relation to be an IRI or array');
        }

        return \is_string($rel) ? $rel : $rel['_links']['self']['href'];
    }
private function getRelationIri($rel): string
    {
        if (!(\is_array($rel) || \is_string($rel))) {
            throw new UnexpectedValueException('Expected relation to be an IRI or array');
        }

        return \is_string($rel) ? $rel : $rel['_links']['self']['href'];
    }
private function getRelationIri ( $ rel ) : string { if ( ! ( \ is_array ( $ rel ) || \ is_string ( $ rel ) ) ) { throw new UnexpectedValueException ( 'Expected relation to be an IRI or array' ) ; } return \ is_string ( $ rel ) ? $ rel : $ rel [ '_links' ] [ 'self' ] [ 'href' ] ; }
Gets the IRI of the given relation.

@throws UnexpectedValueException
Gets the IRI of the given relation .