public function rels(array $urns)
    {
        $rawLinks = [];
        foreach ($this as $i => $link) {
            if (!empty($link->rels)) {
                $match = array_diff($urns, $link->rels);
                if (count($match) != count($urns)) {
                    $rawLinks[] = $this->_links[$i];
                }
            }
        }
        return new CollectionDocJsonLinks($rawLinks, $this->_auth);
    }
public function rels(array $urns)
    {
        $rawLinks = [];
        foreach ($this as $i => $link) {
            if (!empty($link->rels)) {
                $match = array_diff($urns, $link->rels);
                if (count($match) != count($urns)) {
                    $rawLinks[] = $this->_links[$i];
                }
            }
        }
        return new CollectionDocJsonLinks($rawLinks, $this->_auth);
    }
public function rels ( array $ urns ) { $ rawLinks = [ ] ; foreach ( $ this as $ i => $ link ) { if ( ! empty ( $ link -> rels ) ) { $ match = array_diff ( $ urns , $ link -> rels ) ; if ( count ( $ match ) != count ( $ urns ) ) { $ rawLinks [ ] = $ this -> _links [ $ i ] ; } } } return new CollectionDocJsonLinks ( $ rawLinks , $ this -> _auth ) ; }
Get the set of links matching an array of URNs

@param string[] $urns the names to match on
@return CollectionDocJsonLinks the matched links
Get the set of links matching an array of URNs