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

array
toArray(Manager $manager = null)

Creates an array suitable for a map of args in a field

Details

at line 45
__construct(string $argName, string $typeStr)

ArgumentScaffolder constructor

Parameters

string $argName Name of the argument
string $typeStr A string describing the type (see TypeParser)

at line 63
$this setRequired(boolean $bool)

Sets the argument as required

Parameters

boolean $bool

Return Value

$this

at line 76
$this setDescription(string $description)

Sets the argument description

Parameters

string $description

Return Value

$this

at line 89
$this setDefaultValue(mixed $value)

Sets the default value of the argument

Parameters

mixed $value

Return Value

$this

at line 99
string getDescription()

Return Value

string

at line 107
mixed getDefaultValue()

Return Value

mixed

at line 115
boolean isRequired()

Return Value

boolean

at line 125
applyConfig(array $config)

Applies an array of configuration to the scaffolder

Parameters

array $config

at line 145
array toArray(Manager $manager = null)

Creates an array suitable for a map of args in a field

Parameters

Manager $manager

Return Value

array