/**
  * Returns a struct containing two other structures, the first containing the current game settings and the second the game settings for next map.
  * @param bool $multicall
  * @return Structures\GameInfos[] {Structures\GameInfos CurrentGameInfos, Structures\GameInfos NextGameInfos}
  */
 function getGameInfos($multicall = false)
 {
     if ($multicall) {
         return $this->execute(ucfirst(__FUNCTION__), array(), $this->structHandler('GameInfos', true));
     }
     return Structures\GameInfos::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__)));
 }
예제 #2
0
 /**
  * Optional parameter for compatibility: struct version (0 = united, 1 = forever).
  * Returns a struct containing two other structures,
  * the first containing the current game settings and the second the game settings for next map.
  * The first structure is named CurrentGameInfos and the second NextGameInfos.
  * @param int $compatibility
  * @return Structures\GameInfos[]
  * @throws InvalidArgumentException
  */
 function getGameInfos($compatibility = 1)
 {
     if ($compatibility !== 1 && $compatibility != 0) {
         throw new InvalidArgumentException('compatibility = ' . print_r($compatibility, true));
     }
     return Structures\GameInfos::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__), array($compatibility)));
 }