Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace nyx\auth\id\identities; |
||
40 | public function __construct(oauth2\Token $token, array $data) |
||
41 | { |
||
42 | // Note: Bitbucket's UUIDs are wrapped by curly brackets - we are not |
||
43 | // transforming that in any way. |
||
44 | $this->id = $data['uuid'] ?? null; |
||
45 | $this->username = $data['username'] ?? null; |
||
46 | $this->name = $data['display_name'] ?? null; |
||
47 | $this->email = $data['email'] ?? null; |
||
48 | $this->location = $data['location'] ?? null; |
||
49 | $this->website = $data['website'] ?? null; |
||
50 | $this->createdAt = $data['created_on'] ?? null; |
||
51 | |||
52 | parent::__construct($token, $data); |
||
53 | } |
||
54 | } |
||
55 |