ArgumentScaffolder
class ArgumentScaffolder implements ConfigurationApplier (View source)
Properties
string | $argName |
Methods
__construct(string $argName, string $typeStr)
ArgumentScaffolder constructor
$this
setRequired(bool $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
bool
isRequired()
No description
applyConfig(array $config)
Applies an array of configuration to the scaffolder
Details
__construct(string $argName, string $typeStr)
ArgumentScaffolder constructor
$this
setRequired(bool $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()
mixed
getDefaultValue()
bool
isRequired()
applyConfig(array $config)
Applies an array of configuration to the scaffolder
array
toArray(Manager $manager = null)
Creates an array suitable for a map of args in a field