| 1 | <?php |
||
| 8 | class BaseResourceOwner implements ResourceOwnerInterface |
||
| 9 | { |
||
| 10 | use ArrayAccessorTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Raw response |
||
| 14 | * |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $response; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param array $response |
||
| 21 | */ |
||
| 22 | 1 | public function __construct(array $response) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Returns the identifier of the authorized resource owner. |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 1 | public function getId() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Returns the shop name. |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | 1 | public function getShopName() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Return all of the owner details available as an array. |
||
| 49 | * |
||
| 50 | * @return array |
||
| 51 | */ |
||
| 52 | 1 | public function toArray() |
|
| 56 | } |
||
| 57 |