Implements

Methods

name

( )

Returns the name of this type as string.

Returns:
Type Details
string

Name of this type

__toString

( )

Returns string representation of this type.

Returns:
Type Details
string

String representation of this type

create

( mixed $value = null )

Instantiate a value of this type from provided value(s).

Parameters:
Name Type Details
$value mixed

one or more values to coerce into this type

Throws:
Type Details
Exception\InvalidArgumentException

when values given cannot be represented by this type.

Returns:
Type Details
mixed

a value of this type