Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait ContractEndpoints |
||
6 | { |
||
7 | /** |
||
8 | * Get details for item upgrades |
||
9 | * |
||
10 | * @param string $shard |
||
11 | * |
||
12 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
13 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
14 | */ |
||
15 | public function itemUpgrades(string $shard) |
||
16 | { |
||
17 | return $this->request('GET', "https://pd.{$shard}.a.pvp.net/contract-definitions/v3/item-upgrades"); |
||
|
|||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @param string $shard |
||
22 | * @param string $puuid |
||
23 | * |
||
24 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
25 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
26 | */ |
||
27 | public function contracts(string $shard, string $puuid) |
||
28 | { |
||
29 | return $this->request('GET', "https://pd.{$shard}.a.pvp.net/contracts/v1/contracts/{$puuid}"); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Activate a specific contract by ID |
||
34 | * |
||
35 | * @param string $shard |
||
36 | * @param string $puuid |
||
37 | * @param string $contractId |
||
38 | * |
||
39 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
40 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
41 | */ |
||
42 | public function activateContract(string $shard, string $puuid, string $contractId) |
||
45 | } |
||
46 | |||
47 | } |
||
48 |