Ejemplo n.º 1
0
 /**
  * Construct new GMP rational
  *
  * @param GMPIntType $num numerator
  * @param GMPIntType $den denominator
  * @param \Chippyash\Type\BoolType $reduce -optional: default = true
  */
 public function __construct(GMPIntType $num, GMPIntType $den, BoolType $reduce = null)
 {
     if ($reduce != null) {
         $this->reduce = $reduce();
     }
     parent::__construct($num, $den);
 }