private function createTemporaryResource(string $content)
    {
        $tempResource = fopen('php://memory', 'r+');
        fwrite($tempResource, $content);
        rewind($tempResource);

        return $tempResource;
    }