| 1 | <?php namespace Flipbox\OAuth2\Client\Provider; |
||
| 6 | class GuardianResourceOwner 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 | 15 | public function __construct(array $response = array()) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Get resource expires |
||
| 29 | * |
||
| 30 | * @return int|null |
||
| 31 | */ |
||
| 32 | 3 | public function getExpires() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Get resource owner email |
||
| 39 | * |
||
| 40 | * @return string|null |
||
| 41 | */ |
||
| 42 | 9 | public function getEmail() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Get resource owner id |
||
| 49 | * |
||
| 50 | * @return int|null |
||
| 51 | */ |
||
| 52 | 9 | public function getId() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * Get resource owner domain |
||
| 59 | * |
||
| 60 | * @return int|null |
||
| 61 | */ |
||
| 62 | 9 | public function getDomain() |
|
| 66 | |||
| 67 | /** |
||
| 68 | * Get resource owner scopes |
||
| 69 | * |
||
| 70 | * @return array|null |
||
| 71 | */ |
||
| 72 | 3 | public function getScopes() |
|
| 76 | |||
| 77 | /** |
||
| 78 | * Return all of the owner details available as an array. |
||
| 79 | * |
||
| 80 | * @return array |
||
| 81 | */ |
||
| 82 | 3 | public function toArray() |
|
| 86 | } |
||
| 87 |