class Scalar
Implements
Methods
name
( )Returns the name of this type as string.
__toString
( )Returns string representation of this type.
create
(mixed
$value = null )
Instantiate a value of this type from provided value(s).
Returns string representation of this type.
Type | Details |
---|---|
string |
String representation of this type |
Instantiate a value of this type from provided value(s).
Name | Type | Details |
---|---|---|
$value | mixed |
one or more values to coerce into this type |
Type | Details |
---|---|
Exception\InvalidArgumentException |
when values given cannot be represented by this type. |
Type | Details |
---|---|
mixed |
a value of this type |