Documentation

CliCommands
in package
implements CliCommandsInterface

Interfaces, Classes, Traits and Enums

CliCommandsInterface

Table of Contents

$commands  : array<string|int, mixed>
add()  : void
current()  : string|null
matchCurrent()  : array<string|int, mixed>|null

Properties

$commands

protected array<string|int, mixed> $commands = []

Methods

add()

public add(string $name, callable|array<string|int, mixed> $callable[, array<string|int, mixed> $paramNames = [] ][, array<string|int, mixed> $flagNames = [] ]) : void
Parameters
$name : string
$callable : callable|array<string|int, mixed>
$paramNames : array<string|int, mixed> = []
$flagNames : array<string|int, mixed> = []
Return values
void

current()

public current() : string|null
Return values
string|null

matchCurrent()

public matchCurrent() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

Search results