Class ScalarArgument
Factory argument that is a scalar value.
- Autarky\Container\Factory\AbstractArgument
- Autarky\Container\Factory\ScalarArgument implements Autarky\Container\Factory\ArgumentInterface
public
|
#
__construct( integer $position, string $name, string $type, boolean $required = true, mixed $default = null )
Constructor. |
public
boolean
|
|
public
string
|
|
public
mixed
|
getName(),
getPosition(),
isOptional(),
isRequired()
|
string |
TYPE_ARRAY
|
#
'array'
|
string |
TYPE_BOOL
|
#
'bool'
|
string |
TYPE_DOUBLE
|
#
'float'
|
string |
TYPE_FLOAT
|
#
'float'
|
string |
TYPE_INT
|
#
'int'
|
string |
TYPE_MIXED
|
#
'mixed'
|
string |
TYPE_OBJECT
|
#
'object'
|
string |
TYPE_RESOURCE
|
#
'resource'
|
string |
TYPE_STRING
|
#
'string'
|
protected
string
|
$type
The argument's type. |
|
protected
mixed
|
$default
The argument's default value, if it is not required. |
$name,
$position,
$required
|