src/Client.php
private function _clanById(string $param): Clan
    {
        $curlClient = curl_init(
            self::BASE_URL .
            self::CLANS_URL .
            '/' .
            \urlencode($param)
        );
        curl_setopt($curlClient, CURLOPT_HTTPHEADER, $this->_curlHeader);
        curl_setopt($curlClient, CURLOPT_RETURNTRANSFER, true);
        $result = json_decode(curl_exec($curlClient), true);
        return Clan::create($result);
    }
private function _clanById(string $param): Clan
    {
        $curlClient = curl_init(
            self::BASE_URL .
            self::CLANS_URL .
            '/' .
            \urlencode($param)
        );
        curl_setopt($curlClient, CURLOPT_HTTPHEADER, $this->_curlHeader);
        curl_setopt($curlClient, CURLOPT_RETURNTRANSFER, true);
        $result = json_decode(curl_exec($curlClient), true);
        return Clan::create($result);
    }
private function _clanById ( string $ param ) : Clan { $ curlClient = curl_init ( self :: BASE_URL . self :: CLANS_URL . '/' . \ urlencode ( $ param ) ) ; curl_setopt ( $ curlClient , CURLOPT_HTTPHEADER , $ this -> _curlHeader ) ; curl_setopt ( $ curlClient , CURLOPT_RETURNTRANSFER , true ) ; $ result = json_decode ( curl_exec ( $ curlClient ) , true ) ; return Clan :: create ( $ result ) ; }
Retrieves the clan, who matches the given id
@param string $param the clan tag
@return Clan a Clan object, containing the searched clan
Retrieves the clan who matches the given id