__construct() публичный Метод

Used for comparing floating point values.
public __construct ( mixed $value, mixed $margin, string $message = '%s' )
$value mixed Test value to match.
$margin mixed Fuzziness of match.
$message string Customised message on failure.
Пример #1
0
 /**
  *    Sets the value to compare against and the fuzziness of
  *    the match. Used for comparing floating point values.
  *    @param mixed $value        Test value to not match.
  *    @param mixed $margin       Fuzziness of match.
  *    @param string $message     Customised message on failure.
  *    @access public
  */
 function __construct($value, $margin, $message = '%s')
 {
     parent::__construct($value, $margin, $message);
 }
Пример #2
0
 /**
  *    Sets the range of values to compare against.
  *    Used for comparing floating point and integer values.
  *    @param mixed $minimum      Lowest permissable value.
  *    @param mixed $maximum      Highest permissable value.
  *    @param string $message     Customised message on failure.
  *    @access public
  */
 function __construct($minimum, $maximum, $message = '%s')
 {
     parent::__construct($minimum, $maximum, $message);
     $this->upper = $maximum;
     $this->lower = $minimum;
 }