/**
* Give a relative tell()
*/ publicfunctiontell(): int { return$this->stream->tell() - $this->offset; }
/**
* Set the offset to start limiting from
*
* @param int $offset Offset to seek to and begin byte limiting from
*
* @throws \RuntimeException if the stream cannot be seeked.
*/
/**
* Clone and modify a request with the given changes.
*
* This method is useful for reducing the number of clones needed to mutate
* a message.
*
* The changes can be one of:
* - method: (string) Changes the HTTP method.
* - set_headers: (array) Sets the given headers.
* - remove_headers: (array) Remove the given headers.
* - body: (mixed) Sets the given body.
* - uri: (UriInterface) Set the URI.
* - query: (string) Set the query string value of the URI.
* - version: (string) Set the protocol version.
*
* @param RequestInterface $request Request to clone and modify.
* @param array $changes Changes to apply.
*/
$preSql = '
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
SET @locale_de_DE = (SELECT id FROM s_core_locales WHERE locale = "de_DE");
SET @locale_en_GB = (SELECT id FROM s_core_locales WHERE locale = "en_GB");
'; $conn->exec($preSql); $dump->seek($offset);
/**
* Reconstructs a property path from a violation path and a form tree.
*/ privatefunctionreconstructPath(ViolationPath $violationPath, FormInterface $origin): ?RelativePath { $propertyPathBuilder = newPropertyPathBuilder($violationPath);
/**
* Attempts to seek to the given position. Only supports SEEK_SET.
*/ publicfunctionseek($offset, $whence = SEEK_SET): void { if(!$this->seekable){ thrownew \RuntimeException('This AppendStream is not seekable'); }elseif($whence !== SEEK_SET){ thrownew \RuntimeException('The AppendStream can only seek with SEEK_SET'); }