ArgumentScaffolder
class ArgumentScaffolder implements ConfigurationApplier
Properties
string | $argName |
Methods
__construct(string $argName, string $typeStr)
ArgumentScaffolder constructor
$this
setRequired(boolean $bool)
Sets the argument as required
$this
setDescription(string $description)
Sets the argument description
$this
setDefaultValue(mixed $value)
Sets the default value of the argument
string
getDescription()
No description
mixed
getDefaultValue()
No description
boolean
isRequired()
No description
applyConfig(array $config)
Applies an array of configuration to the scaffolder
Details
at line 45
__construct(string $argName, string $typeStr)
ArgumentScaffolder constructor
at line 63
$this
setRequired(boolean $bool)
Sets the argument as required
at line 76
$this
setDescription(string $description)
Sets the argument description
at line 89
$this
setDefaultValue(mixed $value)
Sets the default value of the argument
at line 99
string
getDescription()
at line 107
mixed
getDefaultValue()
at line 115
boolean
isRequired()
at line 125
applyConfig(array $config)
Applies an array of configuration to the scaffolder
at line 145
array
toArray(Manager $manager = null)
Creates an array suitable for a map of args in a field