src/Number.php
public function setMax(float $max) : Number
    {
        $this->attributes['max'] = $max;
        return $this->addTest('max', function ($value) use ($max) {
            return $value <= $max;
        });
    }
public function setMax(float $max) : Number
    {
        $this->attributes['max'] = $max;
        return $this->addTest('max', function ($value) use ($max) {
            return $value <= $max;
        });
    }
public function setMax ( float $ max ) : Number { $ this -> attributes [ 'max' ] = $ max ; return $ this -> addTest ( 'max' , function ( $ value ) use ( $ max ) { return $ value <= $ max ; } ) ; }
Set the maximum value.

@param float $max
@return self
Set the maximum value .