Library
Interface

Library\CommandLine\CommandLineControllerInterface

interface CommandLineControllerInterface

CommandLine controller interface

Methods

addDoneMethod(string $method_name)

Adding a method in the collection of done methods

array getDoneMethods()

Get the collection of done methods

setScript(string $script_name)

Set the current command line script called

string|null getScript()

Get the current command line script called

setParameters(array $params)

Set the command line parameters

array getParameters()

Get the parameters collection

Details

at line 38
public addDoneMethod(string $method_name)

Adding a method in the collection of done methods

Parameters

string $method_name The name of the method

at line 44
public array getDoneMethods()

Get the collection of done methods

Return Value

array

at line 50
public setScript(string $script_name)

Set the current command line script called

Parameters

string $script_name The script name

at line 56
public string|null getScript()

Get the current command line script called

Return Value

string|null

at line 62
public setParameters(array $params)

Set the command line parameters

Parameters

array $params The collection of parameters

at line 68
public array getParameters()

Get the parameters collection

Return Value

array