Class luya\web\jsonld\RangeValue
| Inheritance | luya\web\jsonld\RangeValue ยป luya\web\jsonld\BaseValue |
|---|---|
| Source Code | https://github.com/luyadev/luya/blob/master/core/web/jsonld/RangeValue.php |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | luya\web\jsonld\RangeValue | |
| ensureRange() | luya\web\jsonld\RangeValue | |
| getValue() | luya\web\jsonld\RangeValue |
Method Details
| public void __construct ( $value ) | ||
| $value | ||
public function __construct($value)
{
$this->_value = $value;
}
| 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}.");
}
}