Class AbstractRationalType
Abstract rational number type
- chippyash\Type\AbstractType implements chippyash\Type\Interfaces\TypeInterface
- chippyash\Type\AbstractMultiValueType
- chippyash\Type\Number\Rational\AbstractRationalType implements chippyash\Type\Interfaces\RationalTypeInterface, chippyash\Type\Interfaces\NumericTypeInterface
Direct known subclasses
chippyash\Type\Number\Rational\GMPRationalType, chippyash\Type\Number\Rational\RationalType
Abstract
Namespace: chippyash\Type\Number\Rational
Located at Number/Rational/AbstractRationalType.php
Namespace: chippyash\Type\Number\Rational
Located at Number/Rational/AbstractRationalType.php
public
|
|
public
|
#
asRational( )
Return number as Rational number. NB, numerator and denominator will be caste as IntTypes |
public
|
|
public
|
|
public
mixed
|
|
public
mixed
|
|
public
|
|
public
|
|
public
string
|
|
public
integer|float
|
#
getAsNativeType( )
Get the basic PHP value of the object type properly In this case, the type is an int or float |
public
boolean
|
__clone(),
__construct(),
__invoke(),
get(),
set()
|