1 | <?php |
||
4 | class DokeopResourceOwner implements ResourceOwnerInterface |
||
5 | { |
||
6 | /** |
||
7 | * Raw response. |
||
8 | * |
||
9 | * @var array |
||
10 | */ |
||
11 | protected $response; |
||
12 | |||
13 | /** |
||
14 | * Creates new resource owner. |
||
15 | * |
||
16 | * @param array $response |
||
17 | */ |
||
18 | public function __construct(array $response) |
||
22 | |||
23 | /** |
||
24 | * Returns the identifier of the authorized resource owner. |
||
25 | * |
||
26 | * @return int|null |
||
27 | */ |
||
28 | public function getId() |
||
32 | |||
33 | /** |
||
34 | * Returns resource owner first name. |
||
35 | * |
||
36 | * @return string|null |
||
37 | */ |
||
38 | public function getFirstName() |
||
42 | |||
43 | /** |
||
44 | * Returns resource owner last name. |
||
45 | * |
||
46 | * @return string|null |
||
47 | */ |
||
48 | public function getLastName() |
||
52 | |||
53 | /** |
||
54 | * Returns resource owner email. |
||
55 | * |
||
56 | * @return bool |
||
57 | */ |
||
58 | public function getEmail() |
||
62 | |||
63 | /** |
||
64 | * Returns all of the owner details available as an array. |
||
65 | * |
||
66 | * @return array |
||
67 | */ |
||
68 | public function toArray() |
||
72 | } |
||
73 |