src/Client.php
public function clans($param, $members = false)
    {
        if (is_array($param)) {
            return $this->_clansByFilter($param);
        } else if ($members) {
            return $this->_clansMembersOnly($param);
        }
        return $this->_clanById($param);
    }
public function clans($param, $members = false)
    {
        if (is_array($param)) {
            return $this->_clansByFilter($param);
        } else if ($members) {
            return $this->_clansMembersOnly($param);
        }
        return $this->_clanById($param);
    }
public function clans ( $ param , $ members = false ) { if ( is_array ( $ param ) ) { return $ this -> _clansByFilter ( $ param ) ; } else if ( $ members ) { return $ this -> _clansMembersOnly ( $ param ) ; } return $ this -> _clanById ( $ param ) ; }
Search for clans by different approaches.
@param array|string $param if array it represents the possible filters,
which can be send to the coc api. If it is a string it represents the clan tag
which is send
@return array|Clan if searched with filters, it returns an array with clans,
who match the filter. If searched by tag, the Clan object is returned
Search for clans by different approaches .