Shell
class Shell (View source)
Methods
void
__construct()
Create a Shell instance for use CLI interface
array
arguments()
Get arguments
bool
hasArgs()
Check if using arguments
static bool
isCli()
Check if script is executed in CLI
static string|bool
input(int $length = 0)
Get input data
bool
observer(callable $callback)
Add callback event to input
__destruct()
No description
Details
void
__construct()
Create a Shell instance for use CLI interface
array
arguments()
Get arguments
bool
hasArgs()
Check if using arguments
static bool
isCli()
Check if script is executed in CLI
static string|bool
input(int $length = 0)
Get input data
bool
observer(callable $callback)
Add callback event to input
__destruct()
No description