src/main/php/routing/api/Links.php
public function with(string $rel): array
    {
        if (isset($this->links[$rel])) {
            if (is_array($this->links[$rel])) {
                return $this->links[$rel];
            }

            return [$this->links[$rel]];
        }

        return [];
    }
public function with(string $rel): array
    {
        if (isset($this->links[$rel])) {
            if (is_array($this->links[$rel])) {
                return $this->links[$rel];
            }

            return [$this->links[$rel]];
        }

        return [];
    }
public function with ( string $ rel ) : array { if ( isset ( $ this -> links [ $ rel ] ) ) { if ( is_array ( $ this -> links [ $ rel ] ) ) { return $ this -> links [ $ rel ] ; } return [ $ this -> links [ $ rel ] ] ; } return [ ] ; }
returns all links with given relation

@param   string  $rel
@return  \stubbles\webapp\routing\api\Link[]
returns all links with given relation