private function create()
    {
        $filename = tempnam(null === $this->tempDir ? sys_get_temp_dir() : $this->tempDir, 'php');

        if (!$filename) {
            throw new \Error('The function tempnam() could not create a file in temporary directory.');
        }

        return $filename;
    }