src/Utils/Decimal/Formater/RangeValues.php line 11

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Utils\Decimal\Formater;
  4. class RangeValues
  5. {
  6.     public float $Min;
  7.     public float $Max;
  8.     public function __construct(mixed $min 1mixed $max)
  9.     {
  10.         $this->Min = (float)$min;
  11.         $this->Max = (float)$max;
  12.     }
  13.     public function getMax(): string
  14.     {
  15.         return number_format($this->Max);
  16.     }
  17.     public function getMin(): string
  18.     {
  19.         return number_format($this->Min);
  20.     }
  21.     public function getMaxFloat(): float
  22.     {
  23.         return ($this->Max);
  24.     }
  25.     public function getMinFloat(): float
  26.     {
  27.         return ($this->Min);
  28.     }
  29. }