Help
in package
implements
IVerb, IEntity
Class for processing 'help' verb
Tags
Interfaces, Classes and Traits
Table of Contents
- $doc2Class : array<string, class-string<\Mezon\Cli\Interfaces\IEntity>>
- Hash for entity/verb and class correlation
- getCommand() : class-string<\Mezon\Cli\Interfaces\IEntity>
- Method returns class name for processing command from the command line
- run() : void
- Method prints the usages of the cli
- list() : void
- Method prints the files in a give path
Properties
$doc2Class
Hash for entity/verb and class correlation
private
static array<string, class-string<\Mezon\Cli\Interfaces\IEntity>>
$doc2Class
= ['application' => MezonCliDocApplication::class, 'create' => MezonCliDocCreate::class, 'fs' => MezonCliDocFs::class, 'help' => MezonCliDocHelpOptions::class, 'htaccess' => MezonCliDocHtaccess::class]
Methods
getCommand()
Method returns class name for processing command from the command line
public
static getCommand() : class-string<\Mezon\Cli\Interfaces\IEntity>
Return values
class-string<\Mezon\Cli\Interfaces\IEntity> —run()
Method prints the usages of the cli
public
static run() : void
Return values
void —list()
Method prints the files in a give path
private
static list(string $path) : void
Parameters
- $path : string