Expands both sides (width + height) by the defined value. (w=100, h=200) expanded by 50 is (w=150 h=250)

@param  int $value
@return \Beluga\Drawing\Size
@throws \Beluga\BelugaError  If the instance is set to fixed.
190796
public final function expand( int $value = 1 ) : Size
   {

      $this->triggerFixedErrorByNeed( 'expand' );

      $this->_width  = $this->_width + $value;
      $this->_height = $this->_height + $value;

      return $this;

   }
1276940
public function addValue($value)
    {
        if ($this->datatype == 'string') {
            if (is_string($value) == false) {
                throw new InvalidArgumentException('The value(' . $value . ') is not string but the restriction demands it');
            }
        } elseif ($this->datatype == 'integer') {
            // The value comes as string from the wsdl
            if (is_string($value)) {
                $value = intval($value);
            }

            if (is_int($value) == false) {
                throw new InvalidArgumentException('The value(' . $value . ') is not int but the restriction demands it');
            }
        } else {
            if ($value == null) {
                throw new InvalidArgumentException('Value(' . $value . ') is null');
            }
        }

        $this->values[] = $value;
    }
1200268
public function setRight($value)
	{
		$this->right = intval($value);
		$this->width = null;
		return $this;
	}
670632
public function setAsFloat($value)
    {
        if (!(is_numeric($value) || $value instanceof NumericTypeInterface)) {
            throw new \InvalidArgumentException('value is not numeric');
        }
        $val = is_object($value) ? $value->asFloatType()->get() : floatval($value);
        $intVal = pow(10, $this->precision->get()) * $val;
        parent::set($intVal);

        return $this;
    }
606884
public function setDiscount($value)
    {
        $this->data->amount->subtotals->discount = $this->convertAmount($value);

        return $this;
    }
135523
public function setQuantity($value)
    {
        $this->verifyRequiredField('quantity', $value);
        $this->verifyNonNegativeField('quantity', $value);

        $this->quantity = $value;
        return $this;
    }
1280361
public function multiply($value)
    {
        if (!$value instanceof self) {
            $value = new self($value, $this->getScale(), false);
        }

        $newValue = bcmul($this->getValue(), $value->getValue(), $this->getScale());

        return $this->assignValue($newValue);
    }
1344170
public function setValue($value)
    {
        if (is_null($value)) {
            return $this->value = $value;
        }

        return $this->value = round($value, $this->scale);
    }
111561
protected function getExtraLengthBits($value)
    {
        if (($value >= 257 && $value <= 260) || $value === 285) {
            return 0;
        } elseif ($value >= 261 && $value <= 284) {
            return (($value - 257) >> 2) - 1;
        } else {
            throw new Exception\InvalidArgumentException('value', 'Invalid value');
        }
    }
666603
public function setAddition($value)
    {
        $this->data->amount->subtotals->addition = $this->convertAmount($value);

        return $this;
    }
865164
public function setBic($value)
    {
        if (in_array(strlen($value), $this->getAllowedBicSizes()) === false) {
            throw new ErrorParameter(
                'Bic must be with one of these lengths: ' . implode(', ', $this->getAllowedBicSizes())
            );
        }

        $this->bic = $value;

        return $this;
    }
1108442
public function initFromInteger($value)
    {
        $this->a = ($value >> 24) & 0xFF;
        $this->r = ($value >> 16) & 0xFF;
        $this->g = ($value >> 8) & 0xFF;
        $this->b = $value & 0xFF;

        return $this;
    }
15594
public function transform($value)
    {
        // Not numeric and isn't blank (a value was actually provided)
        if ( ! is_numeric($value) && ! $this->isBlank($value)) {
            throw new LogicException("A valid integer is required.");
        }

        if ($value !== null) {
            return (int) $value;
        }

        return $value;
    }
884531
public static function toUnrestrictedDouble($value)
    {
        if (self::isFloatCastable($value)) {
            return (float)($value instanceof \GMP || is_resource($value) && get_resource_type($value) === 'GMP integer'
                ? gmp_strval($value)
                : $value);
        } else {
            throw new \InvalidArgumentException(ErrorMessageCreator::create($value, 'double (a float)'));
        }
    }
821736
public function addIndentationLevel($value)
    {
        $this->indentationLevel = max(0, $this->indentationLevel + (int)$value);

        return $this;
    }
687561
protected function getSize($value)
    {
        if (is_numeric($value)) {
            return $value;
        }

        if (is_array($value) || $value instanceof Countable) {
            return count($value);
        }

        return mb_strlen($value);
    }
81383
private function assignValue($value)
    {
        if ($this->isMutable()) {
            $result = $this->internalSetValue($value);
        } else {
            $result = new BigNumber($value, $this->getScale(), false);
        }

        return $result;
    }