GoLang SplType::__construct

request it (296)
GoLang replacement for PHP's SplType::__construct [edit | history]



Do you know a GoLang replacement for PHP's SplType::__construct? Write it!

PHP SplType::__construct

PHP original manual for SplType::__construct [ show | php.net ]

SplType::__construct

(PECL spl_types >= 0.1.0)

SplType::__constructCreates a new value of some type

Description

SplType::__construct ([ mixed $initial_value [, bool $strict ]] )

Warning

This function is currently not documented; only its argument list is available.

Parameters

initial_value

Type and default value depends on the extension class.

strict

Whether to set the object's sctrictness.

Errors/Exceptions

Throws an UnexpectedValueException if incompatible type is given.