AbstractListener
in package
implements
Listener
Abstract Execution Loop Listener class.
Interfaces, Classes and Traits
- Listener
- Execution Loop Listener interface.
Table of Contents
- afterLoop() : mixed
- Called at the end of each loop.
- afterRun() : mixed
- Called once after the REPL session ends.
- beforeLoop() : mixed
- Called at the start of each loop.
- beforeRun() : mixed
- Called once before the REPL session starts.
- onExecute() : string|null
- Called before executing user code.
- onInput() : string|null
- Called on user input.
Methods
afterLoop()
Called at the end of each loop.
public
afterLoop(Shell $shell) : mixed
Parameters
- $shell : Shell
Return values
mixed —afterRun()
Called once after the REPL session ends.
public
afterRun(Shell $shell) : mixed
Parameters
- $shell : Shell
Return values
mixed —beforeLoop()
Called at the start of each loop.
public
beforeLoop(Shell $shell) : mixed
Parameters
- $shell : Shell
Return values
mixed —beforeRun()
Called once before the REPL session starts.
public
beforeRun(Shell $shell) : mixed
Parameters
- $shell : Shell
Return values
mixed —onExecute()
Called before executing user code.
public
onExecute(Shell $shell, mixed $code) : string|null
Parameters
- $shell : Shell
- $code : mixed
Return values
string|null —User code override
onInput()
Called on user input.
public
onInput(Shell $shell, mixed $input) : string|null
Parameters
- $shell : Shell
- $input : mixed
Return values
string|null —User input override