OperatorInterface
interface OperatorInterface
An operator is any resource or service that can invoke and send REST operations. In other words, it is any class that can send requests and receive responses with a HTTP client. To do this it needs two things: a {see ClientInterface} for handling HTTP transactions and an {see ApiInterface} for handling how operations are created.
Methods
No description
A convenience method that assembles an operation and sends it to the remote API
A convenience method that assembles an operation and asynchronously sends it to the remote API
Retrieves a populated Operation according to the definition and values provided. A HTTP client is also injected into the object to allow it to communicate with the remote API.
No description
Details
execute(array $definition, array $userValues = array())
A convenience method that assembles an operation and sends it to the remote API
executeAsync(array $definition, array $userValues = array())
A convenience method that assembles an operation and asynchronously sends it to the remote API
getOperation(array $definition)
Retrieves a populated Operation according to the definition and values provided. A HTTP client is also injected into the object to allow it to communicate with the remote API.