/** * 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); }
/** * 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; }