pocketmine\entity\Attribute::setMinValue PHP Method

setMinValue() public method

public setMinValue ( $minValue )
    public function setMinValue($minValue)
    {
        if ($minValue > $this->getMaxValue()) {
            throw new \InvalidArgumentException("Value {$minValue} is bigger than the maxValue!");
        }
        if ($this->minValue != $minValue) {
            $this->desynchronized = true;
            $this->minValue = $minValue;
        }
        return $this;
    }