src/Model/PaginatedResults.php
private function getLinkElement(string $key): int
    {
        $link = -1;
        if (array_key_exists($key, $this->links)) {
            $link = intval($this->links[$key], 10);
        }
        return $link;
    }
private function getLinkElement(string $key): int
    {
        $link = -1;
        if (array_key_exists($key, $this->links)) {
            $link = intval($this->links[$key], 10);
        }
        return $link;
    }
private function getLinkElement ( string $ key ) : int { $ link = - 1 ; if ( array_key_exists ( $ key , $ this -> links ) ) { $ link = intval ( $ this -> links [ $ key ] , 10 ) ; } return $ link ; }
Fetches a link element from the array.

@param string $key The element to retrieve.

@return int The element if found, or -1 if not.
Fetches a link element from the array .