/** * Retrieve all cities * * @param Credentials $credentials API credentials * * @return self the retrieved cities */ public static function cities(Credentials $credentials = null) { if (!empty($credentials)) { self::setCredentials($credentials); } $call = new JsonCall($credentials); $sxe = $call->execute('locations/cities', 'GET', []); self::setTotalPageCount($call->getTotalPageCount()); return $sxe; }
/** * Retrieve all cooperation modes * * @param Credentials $credentials API credentials * * @return self the retrieved cooperation modes */ public static function cooperationTypes(Credentials $credentials = null) { if (!empty($credentials)) { self::setCredentials($credentials); } $call = new JsonCall($credentials); $sxe = $call->execute('accommodation-units/cooperation-modes', 'GET', []); self::setTotalPageCount($call->getTotalPageCount()); return $sxe; }