Class AbstractTypeFactory
Abstract base type for factories Handles gmp/native type determination
Direct known subclasses
chippyash\Type\Number\Complex\ComplexTypeFactory, chippyash\Type\Number\Rational\RationalTypeFactory, chippyash\Type\TypeFactory
public static
|
#
setNumberType( string $requiredType )
Set the required number type to return By default this is self::TYPE_DEFAULT which is 'auto', meaning that the factory will determine if GMP is installed and use that else use PHP native types |
string |
TYPE_DEFAULT
|
# 'auto' |
string |
TYPE_NATIVE
|
# 'native' |
string |
TYPE_GMP
|
# 'gmp' |