DoDomuDojade Documentation

CommandRegistry
in package

FinalYes

Contains a registry of available commands

Table of Contents

Properties

$commands  : array<string|int, Command>

Methods

all()  : array<string|int, Command>
Returns all commands found in the registry
get()  : Command|null
Returns command if found in the registry
has()  : bool
Checks if a command is available in the registry
register()  : void
Adds new command to registry

Properties

Methods

get()

Returns command if found in the registry

public get(string $name) : Command|null
Parameters
$name : string
Return values
Command|null

has()

Checks if a command is available in the registry

public has(string $name) : bool
Parameters
$name : string
Return values
bool

        
On this page

Search results