コード例 #1
0
ファイル: MapEndpoint.php プロジェクト: gw2treasures/gw2api
 /**
  * @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);
 }
コード例 #2
0
ファイル: PoiEndpoint.php プロジェクト: gw2treasures/gw2api
 /**
  * @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);
 }
コード例 #3
0
ファイル: LayerEndpoint.php プロジェクト: gw2treasures/gw2api
 /**
  * @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;
 }
コード例 #4
0
ファイル: TypeEndpoint.php プロジェクト: gw2treasures/gw2api
 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);
 }
コード例 #5
0
ファイル: CoreEndpoint.php プロジェクト: gw2treasures/gw2api
 public function __construct(GW2Api $api, $apiKey, $character)
 {
     parent::__construct($api);
     $this->apiKey = $apiKey;
     $this->character = $character;
 }
コード例 #6
0
ファイル: TeamEndpoint.php プロジェクト: gw2treasures/gw2api
 public function __construct(GW2Api $api, $apiKey, $guildId)
 {
     parent::__construct($api);
     $this->apiKey = $apiKey;
     $this->guildId = $guildId;
 }
コード例 #7
0
ファイル: StatsEndpoint.php プロジェクト: gw2treasures/gw2api
 /**
  * @param GW2Api $api
  * @param string $apiKey
  */
 public function __construct(GW2Api $api, $apiKey)
 {
     $this->apiKey = $apiKey;
     parent::__construct($api);
 }
コード例 #8
0
ファイル: FloorEndpoint.php プロジェクト: Aluquot/gw2api
 /**
  * @param GW2Api $api
  * @param int    $continent_id
  */
 public function __construct(GW2Api $api, $continent_id)
 {
     $this->continent_id = $continent_id;
     parent::__construct($api);
 }