VersionCommand
extends AbstractCommand
in package
Table of Contents
Methods
- execute() : void
- Execute the command
- getDescription() : string
- Get the command description
- getDetailedHelp() : string
- Get detailed help text for this command
- getName() : string
- Get the command name
- error() : never
- Output an error and exit
- out() : void
- Output a message
Methods
execute()
Execute the command
public
execute(array<string|int, mixed> $args) : void
Parameters
- $args : array<string|int, mixed>
-
Command line arguments
Tags
getDescription()
Get the command description
public
getDescription() : string
Tags
Return values
string —A brief description of what this command does
getDetailedHelp()
Get detailed help text for this command
public
getDetailedHelp() : string
Tags
Return values
stringgetName()
Get the command name
public
getName() : string
Tags
Return values
string —The unique name identifier for this command
error()
Output an error and exit
protected
error(string $message) : never
Parameters
- $message : string
Return values
neverout()
Output a message
protected
out(string $message) : void
Parameters
- $message : string