Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace nyx\auth\id\identities; |
||
35 | public function __construct(oauth2\Token $token, array $data) |
||
36 | { |
||
37 | $this->id = $data['user']['id'] ?? null; |
||
38 | $this->email = $data['user']['email'] ?? ''; |
||
39 | $this->name = $data['user']['name'] ?? ''; |
||
40 | $this->avatar = $data['user']['image_192'] ?? ''; |
||
41 | |||
42 | $this->teamId = $data['team']['id'] ?? ''; |
||
43 | $this->teamName = $data['team']['name'] ?? ''; |
||
44 | |||
45 | parent::__construct($token, $data); |
||
46 | } |
||
47 | } |
||
48 |