AbstractCliApplication
class AbstractCliApplication extends AbstractApplication (View source)
Simple class for a Windwalker command line application.
Methods
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.
is utilized for reading data from inaccessible members.
Write a string to standard output.
Get a value from standard input.
Get the IO object.
Details
at line line 43
__construct(IOInterface $io = null, Structure $config = null)
Class constructor.
in AbstractApplication at line line 64
void
close(integer|string $message)
Method to close the application.
in AbstractApplication at line line 86
mixed
execute()
Execute the application.
in AbstractApplication at line line 128
mixed
get(string $key, mixed $default = null)
Returns a property of the object or the default value if the property is not set.
in AbstractApplication at line line 140
LoggerInterface
getLogger()
Get the logger.
in AbstractApplication at line line 175
mixed
set(string $key, mixed $value = null)
Modifies a property of the object, creating it if it does not already exist.
in AbstractApplication at line line 193
AbstractApplication
setConfiguration(Structure $config)
Sets the configuration for the application.
in AbstractApplication at line line 209
AbstractApplication
setLogger(LoggerInterface $logger)
Set the logger.
at line line 124
mixed
__get($name)
is utilized for reading data from inaccessible members.
at line line 74
AbstractCliApplication
out(string $text = '', boolean $nl = true)
Write a string to standard output.
at line line 88
string
in()
Get a value from standard input.
at line line 98
IOInterface
getIO()
Get the IO object.
at line line 110
AbstractCliApplication
setIO(IOInterface $io)
Set the IO object.