src/Chippyash/Type/Number/Rational/RationalTypeFactory.php
protected static function createCorrectRational($num, $den)
    {

        if (self::getRequiredType() == self::TYPE_GMP) {
            // @codeCoverageIgnoreStart
            return new GMPRationalType(new GMPIntType($num), new GMPIntType($den));
            // @codeCoverageIgnoreEnd
        }
        
        return new RationalType(new IntType($num), new IntType($den));
    }
protected static function createCorrectRational($num, $den)
    {

        if (self::getRequiredType() == self::TYPE_GMP) {
            // @codeCoverageIgnoreStart
            return new GMPRationalType(new GMPIntType($num), new GMPIntType($den));
            // @codeCoverageIgnoreEnd
        }
        
        return new RationalType(new IntType($num), new IntType($den));
    }
protected static function createCorrectRational ( $ num , $ den ) { if ( self :: getRequiredType ( ) == self :: TYPE_GMP ) { // @codeCoverageIgnoreStart return new GMPRationalType ( new GMPIntType ( $ num ) , new GMPIntType ( $ den ) ) ; // @codeCoverageIgnoreEnd } return new RationalType ( new IntType ( $ num ) , new IntType ( $ den ) ) ; }
Create and return the correct number type rational

@param int $num
@param int $den

@return \Chippyash\Type\Number\Rational\RationalType|\Chippyash\Type\Number\Rational\GMPRationalType
Create and return the correct number type rational