1 | <?php namespace Flipbox\OAuth2\Client\Provider; |
||
6 | class HubSpotResourceOwner implements ResourceOwnerInterface |
||
7 | { |
||
8 | use ArrayAccessorTrait; |
||
9 | |||
10 | /** |
||
11 | * Raw response |
||
12 | * |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $response; |
||
16 | |||
17 | /** |
||
18 | * Creates new resource owner. |
||
19 | * |
||
20 | * @param array $response |
||
21 | */ |
||
22 | 21 | public function __construct(array $response = array()) |
|
26 | |||
27 | /** |
||
28 | * Get resource owner id |
||
29 | * |
||
30 | * @return string|null |
||
31 | */ |
||
32 | 9 | public function getHubId() |
|
36 | |||
37 | /** |
||
38 | * Get resource expires |
||
39 | * |
||
40 | * @return int|null |
||
41 | */ |
||
42 | 3 | public function getExpires() |
|
46 | |||
47 | /** |
||
48 | * Get resource owner app id |
||
49 | * |
||
50 | * @return int|null |
||
51 | */ |
||
52 | 9 | public function getAppId() |
|
56 | |||
57 | /** |
||
58 | * Get resource owner email |
||
59 | * |
||
60 | * @return string|null |
||
61 | */ |
||
62 | 9 | public function getEmail() |
|
66 | |||
67 | /** |
||
68 | * Get resource owner id |
||
69 | * |
||
70 | * @return int|null |
||
71 | */ |
||
72 | 9 | public function getId() |
|
76 | |||
77 | /** |
||
78 | * Get resource owner domain |
||
79 | * |
||
80 | * @return int|null |
||
81 | */ |
||
82 | 9 | public function getDomain() |
|
86 | |||
87 | /** |
||
88 | * Get resource owner scopes |
||
89 | * |
||
90 | * @return array|null |
||
91 | */ |
||
92 | 3 | public function getScopes() |
|
96 | |||
97 | /** |
||
98 | * Return all of the owner details available as an array. |
||
99 | * |
||
100 | * @return array |
||
101 | */ |
||
102 | 3 | public function toArray() |
|
106 | } |
||
107 |