| 1 | <?php |
||
| 8 | class EpicGamesResourceOwner implements ResourceOwnerInterface |
||
| 9 | { |
||
| 10 | use ArrayAccessorTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $response; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Creates new resource owner. |
||
| 19 | */ |
||
| 20 | 1 | public function __construct(array $response = []) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * Get resource owner ID |
||
| 27 | */ |
||
| 28 | 1 | public function getId(): ?string |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Get resource owner username |
||
| 35 | */ |
||
| 36 | 1 | public function getUsername(): ?string |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Returns the raw resource owner response. |
||
| 43 | */ |
||
| 44 | 1 | public function toArray(): array |
|
| 48 | } |
||
| 49 |