Represent a parameter for a command.
More...
|
| static | create (string $name, string $description, array $values, string $defaultValue="") |
| | Return a new parameter.
|
| |
Represent a parameter for a command.
Ubiquity\devtools\cmd$Parameter This class is part of Ubiquity
- Author
- jc
- Version
- 1.0.0
Definition at line 13 of file Parameter.php.
◆ __construct()
| __construct |
( |
string |
$name = '', |
|
|
string |
$description = '', |
|
|
array |
$values = [], |
|
|
string |
$defaultValue = "" |
|
) |
| |
◆ __toString()
◆ create()
| static create |
( |
string |
$name, |
|
|
string |
$description, |
|
|
array |
$values, |
|
|
string |
$defaultValue = "" |
|
) |
| |
|
static |
Return a new parameter.
- Parameters
-
| string | $name | The parameter name |
| string | $description | The parameter description |
| array | $values | The possible values |
| string | $defaultValue | The default value |
- Returns
- \Ubiquity\devtools\cmd\Parameter
Definition at line 92 of file Parameter.php.
◆ getDefaultValue()
◆ getDescription()
◆ getName()
◆ getValues()
◆ setDefaultValue()
| setDefaultValue |
( |
|
$defaultValue | ) |
|
◆ setDescription()
| setDescription |
( |
|
$description | ) |
|
◆ setName()
◆ setValues()
◆ $defaultValue
◆ $description
◆ $name
◆ $values
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity-commands/src/Ubiquity/devtools/cmd/Parameter.php