TextArgument
extends RawStringArgument
in package
Table of Contents
- $name : string
- $optional : bool
- $parameterData : CommandParameter
- __construct() : mixed
- canParse() : bool
- getName() : string
- getNetworkParameterData() : CommandParameter
- getNetworkType() : int
- getSpanLength() : int
- getTypeName() : string
- isOptional() : bool
- parse() : mixed
Properties
$name
protected
string
$name
$optional
protected
bool
$optional
= false
$parameterData
protected
CommandParameter
$parameterData
Methods
__construct()
public
__construct(string $name[, bool $optional = false ]) : mixed
Parameters
- $name : string
- $optional : bool = false
Return values
mixed —canParse()
public
canParse(string $testString, CommandSender $sender) : bool
Parameters
- $testString : string
- $sender : CommandSender
Return values
bool —getName()
public
getName() : string
Return values
string —getNetworkParameterData()
public
getNetworkParameterData() : CommandParameter
Return values
CommandParameter —getNetworkType()
public
getNetworkType() : int
Return values
int —getSpanLength()
public
getSpanLength() : int
Return values
int —getTypeName()
public
getTypeName() : string
Return values
string —isOptional()
public
isOptional() : bool
Return values
bool —parse()
public
abstract parse(string $argument, CommandSender $sender) : mixed
Parameters
- $argument : string
- $sender : CommandSender