Definition implements HasDefinitionsInterface Uses HasDefinitionsTrait
Interfaces, Classes and Traits
Table of Contents
- $Command : mixed
- $commandMode : mixed
- $description : mixed
- $name : mixed
- $commandDefinitions : mixed
- $defaultCommandName : mixed
- $noCommandsMessage : mixed
- command() : HasDefinitionsInterface
- default() : HasDefinitionsInterface
- definitionsToCommands() : array<string|int, mixed>
- getDefaultCommandName() : string|null
- getNoCommandsMessage() : string|null
- group() : HasDefinitionsInterface
- noCommandAvailable() : HasDefinitionsInterface
Properties
$Command
public
mixed
$Command
$commandMode
public
mixed
$commandMode
$description
public
mixed
$description
$name
public
mixed
$name
$commandDefinitions
protected
mixed
$commandDefinitions
= []
$defaultCommandName
protected
mixed
$defaultCommandName
$noCommandsMessage
protected
mixed
$noCommandsMessage
Methods
command()
public
command(string $name, mixed $Command, string $description) : HasDefinitionsInterface
Parameters
- $name : string
- $Command : mixed
- $description : string
Return values
HasDefinitionsInterface —default()
public
default(string $name) : HasDefinitionsInterface
Parameters
- $name : string
Return values
HasDefinitionsInterface —definitionsToCommands()
public
definitionsToCommands(Application $app[, Command|null $parentCommand = null ]) : array<string|int, mixed>
Parameters
- $app : Application
- $parentCommand : Command|null = null
Return values
array<string|int, mixed> —getDefaultCommandName()
public
getDefaultCommandName() : string|null
Return values
string|null —getNoCommandsMessage()
public
getNoCommandsMessage() : string|null
Return values
string|null —group()
public
group(string $name, string $description, callable $callback) : HasDefinitionsInterface
Parameters
- $name : string
- $description : string
- $callback : callable
Return values
HasDefinitionsInterface —noCommandAvailable()
public
noCommandAvailable(string $message) : HasDefinitionsInterface
Parameters
- $message : string