| 1 | <?php |
||
| 15 | class PsnResourceOwner implements ResourceOwnerInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Raw response |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $response; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Creates new resource owner. |
||
| 26 | * |
||
| 27 | * @param array $response |
||
| 28 | */ |
||
| 29 | 2 | public function __construct(array $response = array()) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Get resource owner id |
||
| 36 | * |
||
| 37 | * @return string|null |
||
| 38 | */ |
||
| 39 | 2 | public function getId() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Get PSN ID |
||
| 46 | * |
||
| 47 | * @return string|null |
||
| 48 | */ |
||
| 49 | 2 | public function getPsnId() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Return all of the owner details available as an array. |
||
| 56 | * |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | 2 | public function toArray() |
|
| 63 | } |
||
| 64 |