Documentation

ArgumentableTrait

Table of Contents

$argumentList  : array<string|int, mixed>
$requiredArgumentCount  : array<string|int, mixed>
generateUsageMessage()  : string
getArgumentList()  : array<string|int, array<string|int, BaseArgument>>
hasArguments()  : bool
hasRequiredArguments()  : bool
parseArguments()  : array<string|int, mixed>
registerArgument()  : void
prepare()  : void
This is where all the arguments, permissions, sub-commands, etc would be registered

Properties

$requiredArgumentCount

private array<string|int, mixed> $requiredArgumentCount = []

Methods

generateUsageMessage()

public generateUsageMessage() : string
Return values
string

hasRequiredArguments()

public hasRequiredArguments() : bool
Return values
bool

parseArguments()

public parseArguments(array<string|int, mixed> $rawArgs, CommandSender $sender) : array<string|int, mixed>
Parameters
$rawArgs : array<string|int, mixed>
$sender : CommandSender
Return values
array<string|int, mixed>

prepare()

This is where all the arguments, permissions, sub-commands, etc would be registered

protected abstract prepare() : void
Return values
void

Search results