AbstractConsole
class AbstractConsole (View source)
The AbstractConsole class.
Properties
IOInterface | $io | Property io. |
Methods
Write a string to standard output.
Get a value from standard input.
getIo
Method to close the application.
Execute the application.
Returns a property of the object or the default value if the property is not set.
Modifies a property of the object, creating it if it does not already exist.
Get or create descriptor.
Details
at line line 57
__construct(IOInterface $io = null, Structure $config = null)
Class constructor.
at line line 88
AbstractConsole
out(string $text = '', boolean $nl = true)
Write a string to standard output.
at line line 102
string
in()
Get a value from standard input.
at line line 112
IOInterface
getIO()
getIo
at line line 124
AbstractConsole
setIO(IOInterface $io)
setIo
at line line 140
void
close(integer|string $message)
Method to close the application.
at line line 164
void
execute()
Execute the application.
at line line 209
mixed
get(string $key, mixed $default = null)
Returns a property of the object or the default value if the property is not set.
at line line 238
mixed
set(string $key, mixed $value = null)
Modifies a property of the object, creating it if it does not already exist.
at line line 254
AbstractConsole
setConfiguration(Structure $config)
Sets the configuration for the application.
at line line 278
AbstractConsole
setConfig(Structure $config)
Method to set property config
at line line 292
DescriptorHelperInterface|TextDescriptorHelper
getDescriptor()
Get or create descriptor.
at line line 312
AbstractConsole
setDescriptor(DescriptorHelperInterface $descriptor)
Method to set property descriptor
at line line 326
string
describeCommand(AbstractCommand $command)
describeCommand