NORMAL
NORMAL
Color indices
Console class
$request : \Pop\Console\Request
Console request object
$response : \Pop\Console\Response
Console response object
__construct(integer $width = 80, string $indent = null) : \Pop\Console\Console
Instantiate a new console object
integer | $width | |
string | $indent |
setWidth(integer $width) : \Pop\Console\Console
Set the wrap width of the console object
integer | $width |
setIndent(string $indent = null) : \Pop\Console\Console
Set the indentation of the console object
string | $indent |
request() : \Pop\Console\Request
Get the request object
response() : \Pop\Console\Response
Get the response object
addCommand(\Pop\Console\Input\Command $command) : \Pop\Console\Console
Add a command
\Pop\Console\Input\Command | $command |
addCommands(array $commands) : \Pop\Console\Console
Add commands
array | $commands |
addOption(\Pop\Console\Input\Option $option) : \Pop\Console\Console
Add an option
\Pop\Console\Input\Option | $option |
addOptions(array $options) : \Pop\Console\Console
Add options
array | $options |
getCommand(string $command) : \Pop\Console\Input\Command
Get a command object
string | $command |
getOption(string $option) : \Pop\Console\Input\Option
Get an option object
string | $option |
append(string $text = null, boolean $newline = true) : \Pop\Console\Console
Append a string of text to the response body
string | $text | |
boolean | $newline |
write(string $text = null, boolean $newline = true) : \Pop\Console\Console
Write a string of text to the response body and send the response
string | $text | |
boolean | $newline |
send() : \Pop\Console\Console
Send the response
clear() : \Pop\Console\Console
Clear the console