src/Chippyash/Type/Number/Rational/AbstractRationalType.php
public function getAsNativeType()
    {
        if ($this->isInteger()) {
            return intval($this->value['num']->get());
        }

        return floatval($this->value['num']->get() / $this->value['den']->get());
    }
public function getAsNativeType()
    {
        if ($this->isInteger()) {
            return intval($this->value['num']->get());
        }

        return floatval($this->value['num']->get() / $this->value['den']->get());
    }
public function getAsNativeType ( ) { if ( $ this -> isInteger ( ) ) { return intval ( $ this -> value [ 'num' ] -> get ( ) ) ; } return floatval ( $ this -> value [ 'num' ] -> get ( ) / $ this -> value [ 'den' ] -> get ( ) ) ; }
Get the basic PHP value of the object type properly
In this case, the type is an int or float

@return int|float
Get the basic PHP value of the object type properly In this case the type is an int or float