-
Notifications
You must be signed in to change notification settings - Fork 9
/
AchievementEndpoint.php
52 lines (44 loc) · 1.16 KB
/
AchievementEndpoint.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
namespace GW2Treasures\GW2Api\V2\Endpoint\Achievement;
use GW2Treasures\GW2Api\V2\Bulk\BulkEndpoint;
use GW2Treasures\GW2Api\V2\Bulk\IBulkEndpoint;
use GW2Treasures\GW2Api\V2\Endpoint;
use GW2Treasures\GW2Api\V2\Localization\ILocalizedEndpoint;
use GW2Treasures\GW2Api\V2\Localization\LocalizedEndpoint;
class AchievementEndpoint extends Endpoint implements IBulkEndpoint, ILocalizedEndpoint {
use BulkEndpoint, LocalizedEndpoint;
/** @var bool $supportsIdsAll */
protected $supportsIdsAll = false;
/**
* The url of this endpoint.
*
* @return string
*/
public function url() {
return 'v2/achievements';
}
/**
* Get achievement categories.
*
* @return CategoryEndpoint
*/
public function categories() {
return new CategoryEndpoint($this->api);
}
/**
* Get daily achievements.
*
* @return DailyEndpoint
*/
public function daily() {
return new DailyEndpoint($this->api);
}
/**
* Get achievement groups.
*
* @return GroupEndpoint
*/
public function groups() {
return new GroupEndpoint($this->api);
}
}