$ident
$ident : string
Abstract CLI Script
setDependencies(\Pimple\Container $container) : void
Give an opportunity to children classes to inject dependencies from a Pimple Container.
Does nothing by default, reimplement in children classes.
The $container
DI-container (from Pimple
) should not be saved or passed around, only to be used to
inject dependencies (typically via setters).
\Pimple\Container | $container | A dependencies container instance. |
__invoke(\Psr\Http\Message\RequestInterface $request, \Psr\Http\Message\ResponseInterface $response) : \Psr\Http\Message\ResponseInterface
\Psr\Http\Message\RequestInterface | $request | A PSR-7 compatible Request instance. |
\Psr\Http\Message\ResponseInterface | $response | A PSR-7 compatible Response instance. |
setIdent(string $ident) : \Charcoal\App\Script\ScriptInterface
string | $ident | The script identifier string. |
If the ident argument is not a string.
Chainable
setDescription(string $description) : \Charcoal\App\Script\ScriptInterface
string | $description | The script description. |
If the deescription parameter is not a string.
Chainable
setQuiet(boolean $quiet) : \Charcoal\App\Script\ScriptInterface
boolean | $quiet | The quiet flag. |
Chainable
setVerbose(boolean $verbose) : \Charcoal\App\Script\ScriptInterface
boolean | $verbose | The verbose flag. |
Chainable
setInteractive(boolean $interactive) : \Charcoal\App\Script\ScriptInterface
boolean | $interactive | The interactive flag. |
Chainable
setDryRun(boolean $simulate) : \Charcoal\App\Script\ScriptInterface
boolean | $simulate | The dry-run flag. |
Chainable
setArguments(array $arguments) : \Charcoal\App\Script\ScriptInterface
array | $arguments | The scripts argument array, as [key=>value]. |
Chainable
addArgument(string $argumentIdent, array $argument) : \Charcoal\App\Script\ScriptInterface
string | $argumentIdent | The argument identifier. |
array | $argument | The argument options. |
If the argument ident is not a string.
Chainable