1 | <?php |
||
8 | class TeamClient extends BaseClient |
||
9 | { |
||
10 | protected $aliases = [ |
||
11 | 'getByShortName' => 'GetTeam', |
||
12 | 'checkIfExists' => 'CheckIfTeamExists', |
||
13 | 'create' => 'CreateTeam', |
||
14 | 'update' => 'UpdateTeam', |
||
15 | 'join' => 'JoinTeam', |
||
16 | ]; |
||
17 | |||
18 | 1 | public function getByShortName($teamShortName) |
|
19 | { |
||
20 | 1 | return $this->get("team/" . $teamShortName); |
|
21 | } |
||
22 | |||
23 | 1 | public function checkIfExists($teamShortName) |
|
27 | |||
28 | 3 | public function create(Team $team) |
|
32 | |||
33 | 1 | public function update($teamShortName, Team $updatedTeam) |
|
37 | |||
38 | 1 | public function join($teamShortName, JoinTeamRequest $joinTeamRequest) |
|
42 | } |
||
43 |