1 | <?php |
||
8 | class WecounselResourceOwner implements ResourceOwnerInterface |
||
9 | { |
||
10 | use ArrayAccessorTrait; |
||
11 | |||
12 | /** |
||
13 | * Raw response |
||
14 | * |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $response; |
||
18 | |||
19 | /** |
||
20 | * Creates new resource owner. |
||
21 | * |
||
22 | * @param array $response |
||
23 | */ |
||
24 | 3 | public function __construct(array $response = array()) |
|
28 | |||
29 | /** |
||
30 | * Get resource owner id |
||
31 | * |
||
32 | * @return string|null |
||
33 | */ |
||
34 | 3 | public function getId() |
|
38 | |||
39 | /** |
||
40 | * Get resource owner name |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | 3 | public function getName() |
|
51 | |||
52 | /** |
||
53 | * Get resource owner email |
||
54 | * |
||
55 | * @return string|null |
||
56 | */ |
||
57 | 3 | public function getEmail() |
|
61 | |||
62 | /** |
||
63 | * Return all of the owner details available as an array. |
||
64 | * |
||
65 | * @return array |
||
66 | */ |
||
67 | 3 | public function toArray() |
|
71 | } |
||
72 |