| 1 | <?php |
||
| 7 | class BufferUser implements ResourceOwnerInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var array |
||
| 11 | */ |
||
| 12 | private $response; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | private $defaultFields = array( |
||
| 18 | 'id' => null, |
||
| 19 | 'name' => null, |
||
| 20 | ); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param array $response |
||
| 24 | */ |
||
| 25 | 2 | public function __construct(array $response = array()) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * Get the ID for the user |
||
| 32 | * |
||
| 33 | * @return string|null |
||
| 34 | */ |
||
| 35 | 2 | public function getId() |
|
| 39 | |||
| 40 | /** |
||
| 41 | * Get the name for the user |
||
| 42 | * |
||
| 43 | * @return string|null |
||
| 44 | */ |
||
| 45 | 2 | public function getName() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Return all the data for the user |
||
| 52 | * |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | 2 | public function toArray() |
|
| 59 | } |
||
| 60 |