chippyash\Type\AbstractMultiValueType
- Magic to string returns empty string
- Get invokes get as native type
- Call to set from types throws exception
- Classes and native types can be used to define value map
- Set from types catches invali object types
- Set from types catches invali native types
chippyash\Type\AbstractType
- Constructor will return abstract type
- Set followed by get returns a value
- Magic to string returns a string
- Magic invoke returns value
- Clone does clone inner value
chippyash\Type\BoolType
- Construct without value throws exception
- Get returns boolean
- Get returns only true or false
- Magic to string returns string
chippyash\Type\Number\Complex\AbstractComplexType
- Radius and abs proxy to modulus
- Theta will return value
- Polar string will return value
chippyash\Type\Number\Complex\ComplexTypeFactory
- Create with invalid string as first parameter throws exception
- Create with valid string containing float as first parameter returns ComplexType
- Create with valid string containing rational as first parameter returns ComplexType
- Create with non string as first param and null as second param throws exception
- Create with unsupported param types throws exception
- Create with correct param types returns ComplexType
- Create from polar returns ComplexType
chippyash\Type\Number\Complex\ComplexType
- Construct expects first parameter to be FloatType
- Construct expects second parameter to be FloatType
- Construct with two RationalType parameters returns ComplexType
- Set expects first parameter to be RationalType
- Set expects second parameter to be RationalType
- Set with two RationalType parameters will return ComplexType
- Set with less than two parameter throws exception
- Set with more than two parameter throws exception
- Set with two parameter returns ComplexType
- R returns rational
- I returns rational
- Is zero returns true if complex is zero
- Is zero returns false if complex is not zero
- Is gaussian for both parts being integer values returns true
- Is gaussian for one part not being integer values returns false
- Conjugate returns correct ComplexType
- Modulus for zero complex number is zero
- Modulus for real returns abs real
- Triangle inequality for modulus
- Commutative multiplication attribute for modulus
- Modulus returns correct result
- Can negate the number
- Is real returns true for real number
- Is real returns false for not real number
- Get returns zero integer for zero complex number
- Get returns integer for integer real complex number
- Get returns float for float real complex number
- Get returns string for non real complex number
- Magic to string returns string
- Get returns string for complex number
- Magic invoke returns string for complex number
- Magic invoke returns int for real integer complex number
- Magic invoke returns float for real float complex number
- To float throws exception for non real complex number
- To float returns float for real float complex number
- To float returns integer for integer float complex number
- As complex returns clone of self
- As rational returns RationalType
- As FloatType returns FloatType
- As IntType returns IntType
- As rational for non real throws exception
- As FloatType for non real throws exception
- As IntType for non real throws exception
- Abs returns absolute value
- Radius returns correct value
- Theta returns correct value
- As polar returns correct values
- Polar quadrant returns correct quadrant
- Polar string for zero complex returns zero string
- Polar string for non zero complex returns non zero string
- Clone does clone inner value
chippyash\Type\Number\Complex\GMPComplexTypeFactory
- Create with invalid string as first parameter throws exception
- Create with valid string containing float as first parameter returns ComplexType
- Create with valid string containing rational as first parameter returns ComplexType
- Create with non string as first param and null as second param throws exception
- Create with unsupported param types throws exception
- Create with correct param types returns ComplexType
- Create from polar returns ComplexType
- Set bad number type throws eception
- Creation will use gmp automatically if it exists
chippyash\Type\Number\Complex\GMPComplexType
- Construct expects first parameter to be FloatType
- Construct expects second parameter to be FloatType
- Construct with two GMPRationalType parameters returns GMPComplexType
- Set expects first parameter to be GMPRationalType
- Set expects second parameter to be GMPRationalType
- Set with two GMPRationalType parameters will return GMPComplexType
- Set with less than two parameter throws exception
- Set with more than two parameter throws exception
- R returns rational
- I returns rational
- Is zero returns true if complex is zero
- Is zero returns false if complex is not zero
- Is gaussian for both parts being integer values returns true
- Conjugate returns correct GMPComplexType
- Modulus for zero complex number is zero
- Triangle inequality for modulus
- Commutative multiplication attribute for modulus
- Modulus returns correct result
- Can negate the number
- Is real returns true for real number
- Is real returns false for not real number
- Get returns integer for integer real number
- Get returns float for float real number
- Magic to string returns string
- Get returns string for complex number
- Magic invoke returns string for complex number
- Magic invoke returns int for real integer complex number
- Magic invoke returns float for real float complex number
- To float throws exception for non real complex number
- To float returns float for real float complex number
- To float returns integer for integer float complex number
- As complex returns clone of self
- As rational returns RationalType
- As FloatType returns FloatType
- As IntType returns IntType
- As rational for non real throws exception
- As FloatType for non real throws exception
- As IntType for non real throws exception
- Abs returns absolute value
- Theta returns GMPRationalType
- Polar string for zero complex returns zero string
- Polar string for non zero complex returns non zero string
- Gmp returns array
- As GMPIntType throws exception for non real complex
- As gmp complex returns clone
- As gmp rational returns gmp rational for real complex
- As gmp rational throws exception for non real complex
chippyash\Type\Number\FloatType
- Float type converts values to float
- Can negate the number
- As complex returns ComplexType
- As rational returns RationalType
- As FloatType returns FloatType
- As IntType returns IntType
- Abs returns absolute value
chippyash\Type\Number\GMPIntType
- G m p IntType converts values to integer
- Can negate the number
- As complex returns ComplexType
- As rational returns RationalType
- As FloatType returns FloatType
- As IntType returns GMPIntType
- Abs returns absolute value
- Factors returns an array of factors of the number
- Prime factors returns an array of factors of the number
- As GMPIntType clones original
- As gmp complex returns GMPComplexType
- As gmp rational returns GMPRationalType
chippyash\Type\Number\IntType
- Int type converts values to integer
- Can negate the number
- As complex returns ComplexType
- As rational returns RationalType
- As FloatType returns FloatType
- As IntType returns IntType
- Abs returns absolute value
- Factors returns an array of factors of the number
- Prime factors returns an array of factors of the number
chippyash\Type\Number\NaturalIntType
- Natural IntType converts to integer
- Construct natural int with integer less than one throws exception
- Cannot negate the number
chippyash\Type\Number\Rational\AbstractRationalType
- Magic invoke proxies to get
- Set returns object
- Set expects at least two parameters
- Set proxies to set from types with two parameters expects IntType parameters
- Numerator returns value
- Denominator returns value
- Get returns value
- As complex returns ComplexType
- As rational returns RationalType
- As FloatType returns FloatType
- As IntType returns IntType
chippyash\Type\Number\Rational\GMPRationalTypeFactory
- Create from valid string value returns ratioanal type
- Create from numeric value with no denominator specified returns ratioanal type
- Create from numeric value with denominator specified returns ratioanal type
- Create from IntTypes returns RationalType
- Create from IntType numerator and no denominator returns RationalType
- Create from IntType numerator and numeric denominator returns RationalType
- Create from numeric numerator and IntType denominator returns RationalType
- Create from FloatType returns RationalType
- Create from invalid string throws exception
- Create from unsupported type for numerator throws exception
- Create from unsupported type for denominator throws exception
- From float uses default tolerance if not given
- From float uses accepts php float tolerance value
- From float uses accepts FloatType tolerance value
- From float with zero value returns zero as string
- Set default from float tolerance is static
- Set number type to default will set gmp if available
chippyash\Type\Number\Rational\GMPRationalType
- Construct expects first parameter to be GMPIntType
- Construct expects second parameter to be GMPIntType
- Construct expects third parameter to be bool type if given
- Construct with third parameter set false will not reduce
- Numerator returns integer
- Denominator returns integer
- Negative denominator normalizes to negative numerator
- Get returns gmp type
- Magic to string returns string value
- Get returns int for whole fraction
- Can negate the number
- Abs returns absolute value
- Magic invoke proxies to get
- Set returns value
- Set expects at least two parameters
- Set proxies to set from types with two parameters expects GMPIntType parameters
- Set proxies to set from types with three parameters expects bool type third parameter
- Set proxies to set from types with two correct parameters
- As complex returns ComplexType
- As rational returns RationalType
- As FloatType returns FloatType
- As IntType returns IntType
- Gmp returns array of gmp types
- As GMPIntType returns GMPIntType
- As gmp rational returns clone of self
- As gmp complex returns gmp complex
chippyash\Type\Number\Rational\RationalTypeFactory
- Create from valid string value returns ratioanal type
- Create from numeric value with no denominator specified returns ratioanal type
- Create from numeric value with denominator specified returns ratioanal type
- Create from IntTypes returns RationalType
- Create from IntType numerator and no denominator returns RationalType
- Create from IntType numerator and numeric denominator returns RationalType
- Create from numeric numerator and IntType denominator returns RationalType
- Create from FloatType returns RationalType
- Create from invalid string throws exception
- Create from unsupported type for numerator throws exception
- Create from unsupported type for denominator throws exception
- From float uses default tolerance if not given
- From float uses accepts php float tolerance value
- From float uses accepts FloatType tolerance value
- From float with zero value returns zero as string
- Set default from float tolerance is static
chippyash\Type\Number\Rational\RationalType
- Construct expects first parameter to be IntType
- Construct expects second parameter to be IntType
- Construct expects third parameter to be bool type if given
- Construct with third parameter set false will not reduce
- Numerator returns integer
- Denominator returns integer
- Negative denominator normalizes to negative numerator
- Get returns float
- Can negate the number
- Abs returns absolute value
- Clone does clone inner value
chippyash\Type\Number\WholeIntType
- Whole IntType converts to integer
- Construct whole int with integer less than zero throws exception
- Cannot negate the number
chippyash\Type\String\DigitType
- Digit type converts strings with numbers stripping non digits
- Convert non stringable type throws exception
chippyash\Type\String\StringType
- String type converts base types to string
chippyash\Type\TypeFactory
- Factory create method returns correct type
- Create invalid type throws exception
- Create int returns IntType
- Create float returns FloatType
- Create string returns string type
- Create bool returns bool type
- Create digit returns digit type
- Create whole returns whole IntType
- Create natural returns natural IntType
- Create rational returns RationalType
- Create complex returns ComplexType
- Create int with non numeric throws exception
- Create whole int with non numeric throws exception
- Create natural int with non numeric throws exception
- Create float with non numeric throws exception
- Create with numeric type interface parameter returns numeric type interface
- Set number type to default will set gmp if available
- Set number type to invalid type throws exception