private function transformChunk(string $chunk)
    {
        if (null === $this->chunkTransformer) {
            return $chunk;
        }

        return \call_user_func($this->chunkTransformer, $chunk);
    }