\Pop\ConsoleCommand

Console command class

Summary

Methods
Properties
Constants
__construct()
setName()
setHelp()
getName()
getHelp()
__toString()
No public properties found
No constants found
No protected methods found
$name
$help
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

Command name

Type

string

$help

$help : string

Command help

Type

string

Methods

__construct()

__construct(string  $name, string  $help = null) : \Pop\Console\Command

Instantiate the command object

Parameters

string $name
string $help

Returns

\Pop\Console\Command

setName()

setName(string  $name) : \Pop\Console\Command

Set the command name

Parameters

string $name

Returns

\Pop\Console\Command

setHelp()

setHelp(string  $help) : \Pop\Console\Command

Set the command help

Parameters

string $help

Returns

\Pop\Console\Command

getName()

getName() : string

Get the command name

Returns

string

getHelp()

getHelp() : string

Get the command help

Returns

string

__toString()

__toString() : string

Return the command name as string

Returns

string