src/Number/Rational.php
private function addInt(int $int): Rational
    {
        $w = $this->whole + $int;
        return new Rational($w, $this->numerator, $this->denominator);
    }
private function addInt(int $int): Rational
    {
        $w = $this->whole + $int;
        return new Rational($w, $this->numerator, $this->denominator);
    }
private function addInt ( int $ int ) : Rational { $ w = $ this -> whole + $ int ; return new Rational ( $ w , $ this -> numerator , $ this -> denominator ) ; }
Add an integer

@param int $int

@return Rational
Add an integer