OAuthResponse
abstract class OAuthResponse implements Iterator
Base class for all resource, represents the response of the callAPI method.
It implements the Iterator interface to allow the use of the foreach statement.
Properties
private string | $provider | The name of the provider | |
private array | $values | The properties of the resource |
Methods
Constructs a OAuthResponse object
Sets the value of a property
Returns the name of the provider
Allows direct read-only access to a property
Allows to test (isset) directly the existence of a property
Defines a dynamic getter for the properties.
Rewinds back to the first property of the resource.
Returns the current property
Returns the name of the current property
Moves forward to next property
Checks if current position is valid
Details
at line 33
__construct(string $provider, array|object $values, array $mapping = [])
Constructs a OAuthResponse object
at line 60
protected
setPropertyValue(string $property, string $value, array $mapping)
Sets the value of a property
at line 75
string
getProvider()
Returns the name of the provider
at line 86
mixed|null
__get(string $property)
Allows direct read-only access to a property
at line 110
bool
__isset(string $property)
Allows to test (isset) directly the existence of a property
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.
at line 159
rewind()
Rewinds back to the first property of the resource.
at line 168
mixed
current()
Returns the current property
at line 177
scalar
key()
Returns the name of the current property
at line 184
next()
Moves forward to next property
at line 193
bool
valid()
Checks if current position is valid