| 1 | <?php |
||
| 7 | class DigitalOceanResourceOwner implements ResourceOwnerInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Raw response |
||
| 11 | * |
||
| 12 | * @var |
||
| 13 | */ |
||
| 14 | protected $response; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Creates new resource owner. |
||
| 18 | * |
||
| 19 | * @param $response |
||
| 20 | */ |
||
| 21 | 3 | public function __construct($response) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Get resource owner id |
||
| 28 | * |
||
| 29 | * @return string|null |
||
| 30 | */ |
||
| 31 | 3 | public function getId() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Return all of the details available as an array. |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | 3 | public function toArray() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Get email |
||
| 48 | * |
||
| 49 | * @return string|null |
||
| 50 | */ |
||
| 51 | 3 | public function getEmail() |
|
| 55 | |||
| 56 | /** |
||
| 57 | * Get droplet limit |
||
| 58 | * |
||
| 59 | * @return string|null |
||
| 60 | */ |
||
| 61 | 3 | public function getDropletLimit() |
|
| 65 | |||
| 66 | /** |
||
| 67 | * Get floating ip limit |
||
| 68 | * |
||
| 69 | * @return string|null |
||
| 70 | */ |
||
| 71 | 3 | public function getFloatingIpLimit() |
|
| 75 | |||
| 76 | /** |
||
| 77 | * Get email verified status |
||
| 78 | * |
||
| 79 | * @return string|null |
||
| 80 | */ |
||
| 81 | 3 | public function getEmailVerified() |
|
| 85 | |||
| 86 | /** |
||
| 87 | * Get account status |
||
| 88 | * |
||
| 89 | * @return string|null |
||
| 90 | */ |
||
| 91 | 3 | public function getStatus() |
|
| 95 | |||
| 96 | /** |
||
| 97 | * Get account status message |
||
| 98 | * |
||
| 99 | * @return string|null |
||
| 100 | */ |
||
| 101 | 3 | public function getStatusMessage() |
|
| 105 | } |
||
| 106 |