예제 #1
0
 /**
  * @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
 /**
  * @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
 /**
  * @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
 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
 public function __construct(GW2Api $api, $apiKey, $character)
 {
     parent::__construct($api);
     $this->apiKey = $apiKey;
     $this->character = $character;
 }
예제 #6
0
 public function __construct(GW2Api $api, $apiKey, $guildId)
 {
     parent::__construct($api);
     $this->apiKey = $apiKey;
     $this->guildId = $guildId;
 }
예제 #7
0
 /**
  * @param GW2Api $api
  * @param string $apiKey
  */
 public function __construct(GW2Api $api, $apiKey)
 {
     $this->apiKey = $apiKey;
     parent::__construct($api);
 }
예제 #8
0
 /**
  * @param GW2Api $api
  * @param int    $continent_id
  */
 public function __construct(GW2Api $api, $continent_id)
 {
     $this->continent_id = $continent_id;
     parent::__construct($api);
 }