Property | Type | Description | |
---|---|---|---|
$docComment | string | PHPdoc command for the command. |
Method | Description | |
---|---|---|
__construct ( string $docComment ) | ||
get_arg_args ( string $name ) : mixed | null | Get the arguments for a given argument. | |
get_arg_desc ( string $name ) : string | Get the description for a given argument. | |
get_longdesc ( ) : string | Get the command's full description | |
get_param_args ( string $key ) : mixed | null | Get the arguments for a given parameter. | |
get_param_desc ( string $key ) : string | Get the description for a given parameter. | |
get_shortdesc ( ) : string | Get the command's short description (e.g. summary). | |
get_synopsis ( ) : string | Get the command's synopsis. | |
get_tag ( string $name ) : string | Get the value for a given tag (e.g. "@alias" or "@subcommand") |
Method | Description | |
---|---|---|
get_arg_or_param_args ( string $regex ) : array | null | Get the args for an arg or param | |
remove_decorations ( string $comment ) : string | Remove unused cruft from PHPdoc comment. |
public get_arg_desc ( string $name ) : string | ||
$name | string | Argument's doc name. |
return | string |
public get_longdesc ( ) : string | ||
return | string |
public get_param_desc ( string $key ) : string | ||
$key | string | Parameter's key. |
return | string |
public get_shortdesc ( ) : string | ||
return | string |
public get_synopsis ( ) : string | ||
return | string |
protected string $docComment | ||
return | string |