Method |
Description |
|
__construct ( HttpClient $client ) |
|
|
getAdditionalRouteParams ( ) : array |
|
|
getLastId ( ) : integer |
Saves an id for future methods in the chain |
|
getResourceName ( ) : String |
|
|
getRoute ( $name, array $params = [] ) : mixed |
Returns a route and replaces tokenized parts of the string with
the passed params |
|
getRoutes ( ) : array |
Return all routes for this resource |
|
getValidSubResources ( ) : array |
This returns the valid relations of this resource. Definition of what is allowed to chain after this resource. |
|
hasAnyKey ( array $params, array $mandatory ) : boolean |
Check that any parameter has been supplied |
|
hasKeys ( array $params, array $mandatory ) : boolean |
Check that all parameters have been supplied |
|
setAdditionalRouteParams ( array $additionalRouteParams ) |
|
|
setLastId ( integer $id ) |
Saves an id for future methods in the chain |
|
setRoute ( $name, $route ) |
Add or override an existing route |
|
setRoutes ( array $routes ) |
Wrapper for adding multiple routes via setRoute |
|
sideload ( array $fields = [] ) |
Enable side-loading (beta) - flags until the next chain |
|