| 1 | <?php |
||
| 5 | class MovesResourceOwner implements ResourceOwnerInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Domain |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $domain; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Raw response |
||
| 16 | * |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $response; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Creates new resource owner. |
||
| 23 | * |
||
| 24 | * @param array $response |
||
| 25 | */ |
||
| 26 | 3 | public function __construct(array $response = []) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Get resource owner id |
||
| 33 | * |
||
| 34 | * @return string|null |
||
| 35 | */ |
||
| 36 | 3 | public function getId() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get resource owner email |
||
| 43 | * |
||
| 44 | * @return string|null |
||
| 45 | */ |
||
| 46 | 3 | public function getFirstDate() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Get resource owner first name |
||
| 53 | * |
||
| 54 | * @return string|null |
||
| 55 | */ |
||
| 56 | 3 | public function getCaloriesAvailable() |
|
| 60 | |||
| 61 | /** |
||
| 62 | * Return all of the owner details available as an array. |
||
| 63 | * |
||
| 64 | * @return array |
||
| 65 | */ |
||
| 66 | 3 | public function toArray() |
|
| 70 | } |
||
| 71 |