Overview

Namespaces

  • chippyash
    • Type
      • Exceptions
      • Interfaces
      • Number
        • Complex
        • Rational
      • String

Classes

  • AbstractMultiValueType
  • AbstractType
  • AbstractTypeFactory
  • BoolType
  • TypeFactory
  • Overview
  • Namespace
  • Class
  • Tree

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
Abstract
Namespace: chippyash\Type
Located at AbstractTypeFactory.php
Methods summary
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

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

Parameters

$requiredType

Throws

InvalidArgumentException
\InvalidArgumentException
Constants summary
string TYPE_DEFAULT
#'auto'
string TYPE_NATIVE
#'native'
string TYPE_GMP
#'gmp'
Chippyash Strong Types API documentation generated by ApiGen 2.8.0