/** * Constructs a transformer. * * @param int $precision Unused * @param bool $grouping Whether thousands should be grouped * @param int $roundingMode One of the ROUND_ constants in this class */ public function __construct($precision = null, $grouping = null, $roundingMode = self::ROUND_DOWN) { if (null === $roundingMode) { $roundingMode = self::ROUND_DOWN; } parent::__construct(0, $grouping, $roundingMode); }
/** * Constructs a transformer. * * @param bool $grouping Whether thousands should be grouped * @param int $roundingMode One of the ROUND_ constants in this class */ public function __construct(bool $grouping = null, int $roundingMode = null) { if (null === $roundingMode) { $roundingMode = self::ROUND_DOWN; } parent::__construct(0, $grouping, $roundingMode); }
/** * Constructs a transformer. * * @param int $scale Unused * @param bool $grouping Whether thousands should be grouped * @param int $roundingMode One of the ROUND_ constants in this class */ public function __construct($scale = 0, $grouping = false, $roundingMode = self::ROUND_DOWN) { if (null === $roundingMode) { $roundingMode = self::ROUND_DOWN; } parent::__construct(0, $grouping, $roundingMode); }