ApiClient
class ApiClient mixin TResource>
Traits
Properties
| protected TResource> | $resource | ||
| protected list<callable|object|string> | $requestMiddleware | ||
| protected list<callable|object|string> | $responseMiddleware |
Methods
mixed
forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
from
ForwardsCalls
mixed
forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
from
ForwardsCalls
static never
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
from
ForwardsCalls
createPendingRequest()
Create a pending API request.
newPendingRequest()
Create a new pending API request instance.
void
mixed
__call(string $method, array $parameters)
Dynamically pass method calls to a pending API request.
Details
in
ForwardsCalls at line 22
protected mixed
forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
in
ForwardsCalls at line 52
protected mixed
forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
in
ForwardsCalls at line 66
static protected never
throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
at line 37
PendingRequest
createPendingRequest()
Create a pending API request.
at line 54
protected PendingRequest
newPendingRequest()
Create a new pending API request instance.
at line 65
protected void
configurePendingRequest(PendingRequest $request)
Configure a pending API request.
at line 72
mixed
__call(string $method, array $parameters)
Dynamically pass method calls to a pending API request.