public function validateMax($amount)
    {
        $this->validator_attributes[] = 'data-parsley-max="' . (float)$amount . '"';

        $this->validator_checks['max'] = (float)$amount;

        return $this;
    }
public function validateMax($amount)
    {
        $this->validator_attributes[] = 'data-parsley-max="' . (float)$amount . '"';

        $this->validator_checks['max'] = (float)$amount;

        return $this;
    }
public function validateMax ( $ amount ) { $ this -> validator_attributes [ ] = 'data-parsley-max="' . ( float ) $ amount . '"' ; $ this -> validator_checks [ 'max' ] = ( float ) $ amount ; return $ this ; }
Validates that a given number is less than or equal to some maximum number.

@param float $amount

@return $this
Validates that a given number is less than or equal to some maximum number .