Class luya\web\jsonld\RangeValue

Inheritanceluya\web\jsonld\RangeValue » luya\web\jsonld\BaseValue
Source Code https://github.com/luyadev/luya/blob/master/core/web/jsonld/RangeValue.php

Method Details

Hide inherited methods

__construct() public method

public void __construct ( $value )
$value

                public function __construct($value)
{
    $this->_value = $value;
}

            
ensureRange() public method

public void ensureRange ( $min, $max )
$min
$max

                public function ensureRange($min, $max)
{
    if ($this->_value < $min || $this->_value > $max) {
        throw new InvalidConfigException("Value {$this->_value} must be min {$min} or max {$max}.");
    }
}

            
getValue() public method

public void getValue ( )

                public function getValue()
{
    return $this->_value;
}