Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function getTeamByName($args = []) |
||
32 | { |
||
33 | |||
34 | $response = $this->call('getTeamByName', $args); |
||
35 | |||
36 | $team = new Twitch\Team; |
||
37 | $team->setName($response->name); |
||
38 | $team->setInfo($response->info); |
||
39 | $team->setDisplayName($response->display_name); |
||
40 | $team->setCreatedAt($response->created_at); |
||
41 | $team->setUpdatedAt($response->updated_at); |
||
42 | $team->setBackground($response->background); |
||
43 | $team->setLogo($response->logo); |
||
44 | return $team; |
||
45 | } |
||
46 | } |