class CommandArgumentDefinition (View source)

Represents a CommandArgumentDefinition

Properties

protected string $name
protected bool $required
protected string $description

Methods

__construct(string $name, bool $required, string $description)

Constructor

string
getName()

No description

string
getDashedName()

Returns the lowercased name with dashes as word separator

string
getDescription()

No description

bool
isRequired()

No description

Details

__construct(string $name, bool $required, string $description)

Constructor

Parameters

string $name

name of the command argument (= parameter name)

bool $required

defines whether this argument is required or optional

string $description

description of the argument

string getName()

No description

Return Value

string

string getDashedName()

Returns the lowercased name with dashes as word separator

Return Value

string

string getDescription()

No description

Return Value

string

bool isRequired()

No description

Return Value

bool