= $argumentsLength) { parent::setArguments($arguments); return; } if ($arguments[static::$capacityArgumentPositionOffset] === -1) { array_splice($arguments, static::$capacityArgumentPositionOffset, 1, [false]); parent::setArguments($arguments); return; } if ($arguments[static::$capacityArgumentPositionOffset] < 1) { throw new UnexpectedValueException('Wrong capacity argument value or position offset'); } $argument = $arguments[static::$capacityArgumentPositionOffset]; $argumentsBefore = array_slice($arguments, 0, static::$capacityArgumentPositionOffset); $argumentsAfter = array_slice($arguments, static::$capacityArgumentPositionOffset + 1); parent::setArguments(array_merge( $argumentsBefore, [self::$capacityModifier], [$argument], $argumentsAfter )); } }