CommandExecutor
in package
implements
CommandExecutorContract
Class CommandExecutor
Represents an implementation of CommandExecutorContract used for executing commands.
Table of Contents
Interfaces
- CommandExecutorContract
- Interface CommandExecutorContract
Properties
- $attributer : CommandAttributerContract
- $endpointProvider : CommandEndpointProviderContract
- $responseHandler : ResponseHandlerAbstract
Methods
- __construct() : mixed
- CommandExecutor constructor.
- execute() : ResponseDataContract
- Executes the command.
- fieldBuilder() : CommandAttributerContract
- Retrieves the command attributer for building command fields.
- getURL() : string
- Builds the URL for the command execution.
Properties
$attributer
private
CommandAttributerContract
$attributer
$endpointProvider
private
CommandEndpointProviderContract
$endpointProvider
$responseHandler
private
ResponseHandlerAbstract
$responseHandler
Methods
__construct()
CommandExecutor constructor.
public
__construct(CommandFactoryContract $factory) : mixed
Parameters
- $factory : CommandFactoryContract
-
The factory for creating command components.
execute()
Executes the command.
public
execute() : ResponseDataContract
Tags
Return values
ResponseDataContract —The response data contract.
fieldBuilder()
Retrieves the command attributer for building command fields.
public
fieldBuilder() : CommandAttributerContract
Return values
CommandAttributerContract —The command attributer.
getURL()
Builds the URL for the command execution.
private
getURL() : string
Return values
string —The URL for the command execution.