/** * @param GW2Api $api * @param int $continent * @param int $floor * @param int $region */ public function __construct(GW2Api $api, $continent, $floor, $region) { $this->continent = $continent; $this->floor = $floor; $this->region = $region; parent::__construct($api); }
/** * @param GW2Api $api * @param int $continent * @param int $floor * @param int $region * @param int $map */ public function __construct(GW2Api $api, $continent, $floor, $region, $map) { $this->continent_id = $continent; $this->floor = $floor; $this->region = $region; $this->map = $map; parent::__construct($api); }
/** * @param GW2Api $api * @param string $type Type of this endpoint. */ public function __construct(GW2Api $api, $type) { parent::__construct($api); if (!in_array($type, self::$types)) { throw new \InvalidArgumentException('$type has to be one of ' . implode(', ', self::$types)); } $this->type = $type; }
public function __construct(GW2Api $api, $apiKey, $type) { if (!in_array($type, self::$types)) { throw new InvalidArgumentException('Invalid $type ("' . $type . '""), has to be one of: ' . implode(', ', self::$types)); } $this->type = $type; $this->apiKey = $apiKey; parent::__construct($api); }
public function __construct(GW2Api $api, $apiKey, $character) { parent::__construct($api); $this->apiKey = $apiKey; $this->character = $character; }
public function __construct(GW2Api $api, $apiKey, $guildId) { parent::__construct($api); $this->apiKey = $apiKey; $this->guildId = $guildId; }
/** * @param GW2Api $api * @param string $apiKey */ public function __construct(GW2Api $api, $apiKey) { $this->apiKey = $apiKey; parent::__construct($api); }
/** * @param GW2Api $api * @param int $continent_id */ public function __construct(GW2Api $api, $continent_id) { $this->continent_id = $continent_id; parent::__construct($api); }