public function __construct($ranges)
 {
     parent::__construct();
     if (!is_array($ranges)) {
         throw new \Exception("Ranges must be an array");
     }
     $this->ranges = $ranges;
     $this->__init();
 }
 public function __construct($cents, $factor = 0, $precision = 0, $mode = Rounder::ROUND_HALF_UP)
 {
     parent::__construct($precision, $mode);
     $this->cents = (double) $cents / 100.0;
     $this->factor = (double) $factor;
 }
 public function __construct($precision = 0, $mode = Rounder::ROUND_HALF_UP)
 {
     parent::__construct($precision, $mode);
 }