1 | <?php |
||
5 | class BitbucketResourceOwner implements ResourceOwnerInterface |
||
6 | { |
||
7 | /** |
||
8 | * Response data. |
||
9 | * |
||
10 | * @var array |
||
11 | */ |
||
12 | protected $response; |
||
13 | |||
14 | /** |
||
15 | * Creates new bitbucket resource owner instance. |
||
16 | * |
||
17 | * @param array $response |
||
18 | */ |
||
19 | 2 | public function __construct(array $response = array()) |
|
23 | |||
24 | /** |
||
25 | * Returns the identifier of the authorised resource owner. |
||
26 | * |
||
27 | * @return string|null |
||
28 | */ |
||
29 | 2 | public function getId() |
|
33 | |||
34 | /** |
||
35 | * Returns all of the owner details available as an array. |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | 2 | public function toArray() |
|
43 | } |
||
44 |