/**
  * Return info for a given team.
  * Only available to Admin.
  * @param int $team 0: no clan, 1 or 2
  * @param bool $multicall
  * @return Structures\Team
  * @throws InvalidArgumentException
  */
 function getTeamInfo($team, $multicall = false)
 {
     if (!is_int($team) || $team < 0 || $team > 2) {
         throw new InvalidArgumentException('team = ' . print_r($team, true));
     }
     if ($multicall) {
         return $this->execute(ucfirst(__FUNCTION__), array($team), $this->structHandler('Team'));
     }
     return Structures\Team::fromArray($this->execute(ucfirst(__FUNCTION__), array($team)));
 }
Ejemplo n.º 2
0
 /**
  * Return Team info for a given clan (0 = no clan, 1, 2).
  * The structure contains: name, zonePath, city, emblemUrl, huePrimary, hueSecondary, rGB, clubLinkUrl.
  * Only available to Admin.
  * @param int $teamId
  * @return Structures\Team
  * @throws InvalidArgumentException
  */
 function getTeamInfo($teamId)
 {
     if (!is_int($teamId)) {
         throw new InvalidArgumentException('teamId = ' . print_r($teamId, true));
     }
     return Structures\Team::fromArray($this->execute(ucfirst(__FUNCTION__), array($teamId)));
 }