ConcreteClassFactory
in package
implements
FactoryInterface
Command factory used to create commands referencing concrete command classes
Table of Contents
Interfaces
- FactoryInterface
- Interface for creating commands by name
Properties
Methods
- __construct() : mixed
- factory() : CommandInterface|null
- Create a command by name
Properties
$client
protected
ClientInterface
$client
$inflector
protected
InflectorInterface
$inflector
Methods
__construct()
public
__construct(ClientInterface $client[, InflectorInterface $inflector = null ]) : mixed
Parameters
- $client : ClientInterface
-
Client that owns the commands
- $inflector : InflectorInterface = null
-
Inflector used to resolve class names
factory()
Create a command by name
public
factory(mixed $name[, array<string|int, mixed> $args = array() ]) : CommandInterface|null
Parameters
- $name : mixed
-
Command to create
- $args : array<string|int, mixed> = array()
-
Command arguments