ResourceOwner
class ResourceOwner extends OAuthResponse
This class represents a resource owner
The resource owner is the user who authorizes an application to access their account. The application’s access to the user’s account is limited to the “scope” of the authorization granted
Constants
ADDRESS_MAPPING |
|
Properties
private string | $provider | The name of the provider | from OAuthResponse |
private array | $values | The properties of the resource | from OAuthResponse |
private string | $id | The ID of the resource owner |
Methods
Constructs a ResourceOwner object
Sets the value of a property
Allows to test (isset) directly the existence of a property
Defines a dynamic getter for the properties.
Returns the ID of the resource owner
Details
at line 42
__construct(string $provider, $id, array|object $values, array $mapping)
Constructs a ResourceOwner object
in OAuthResponse at line 60
protected
setPropertyValue(string $property, string $value, array $mapping)
Sets the value of a property
in OAuthResponse at line 75
string
getProvider()
Returns the name of the provider
in OAuthResponse at line 86
mixed|null
__get(string $property)
Allows direct read-only access to a property
in OAuthResponse at line 110
bool
__isset(string $property)
Allows to test (isset) directly the existence of a property
in OAuthResponse at line 124
mixed|null
__call(string $method, array $arguments)
Defines a dynamic getter for the properties.
For example, if the property is named 'my_property', a call to the getMyProperty() method will get the value of my_property.
in OAuthResponse at line 159
rewind()
Rewinds back to the first property of the resource.
in OAuthResponse at line 168
mixed
current()
Returns the current property
in OAuthResponse at line 177
scalar
key()
Returns the name of the current property
in OAuthResponse at line 184
next()
Moves forward to next property
in OAuthResponse at line 193
bool
valid()
Checks if current position is valid
at line 52
string
getId()
Returns the ID of the resource owner