Documentation

StringEnumArgument extends BaseArgument
in package

Table of Contents

VALUES  = []
$name  : string
$optional  : bool
$parameterData  : CommandParameter
__construct()  : mixed
canParse()  : bool
getEnumValues()  : array<string|int, mixed>
getName()  : string
getNetworkParameterData()  : CommandParameter
getNetworkType()  : int
getSpanLength()  : int
Returns how much command arguments it takes to build the full argument
getTypeName()  : string
getValue()  : mixed
isOptional()  : bool
parse()  : mixed

Constants

Properties

Methods

__construct()

public __construct(string $name[, bool $optional = false ]) : mixed
Parameters
$name : string
$optional : bool = false
Return values
mixed —

getEnumValues()

public getEnumValues() : array<string|int, mixed>
Return values
array<string|int, mixed> —

getName()

public getName() : string
Return values
string —

getSpanLength()

Returns how much command arguments it takes to build the full argument

public getSpanLength() : int
Return values
int —

getTypeName()

public abstract getTypeName() : string
Return values
string —

getValue()

public getValue(string $string) : mixed
Parameters
$string : string
Return values
mixed —

isOptional()

public isOptional() : bool
Return values
bool —

Search results