Property | Type | Description | |
---|---|---|---|
$client | |||
$last_response | mixed |
Method | Description | |
---|---|---|
__call ( string $method, array $args ) : StdClass | Calls the method contained in the actions of this resource | |
__construct ( |
Initializes the client | |
getActions ( ) : array | Returns the actions available for this resource | |
getBaseUri ( ) : string | Returns the base URI for every request | |
getLastResponse ( ) : mixed | Returns the last_response of the last executed request |
Method | Description | |
---|---|---|
parse ( string $response ) : string | Returns the response parsed, by default as a json-decoded StdObject |
Method | Description | |
---|---|---|
getParams ( array $args ) : array | Extracts the params from the arguments passed | |
getPath ( array $action, array $args ) : mixed | Returns the URI path for the request |
public __construct ( |
||
$client |
abstract public getActions ( ) : array | ||
return | array |
abstract public getBaseUri ( ) : string | ||
return | string |
public getLastResponse ( ) : mixed | ||
return | mixed |