Swift_ByteStream_TemporaryFileByteStream::__construct PHP Method

__construct() public method

public __construct ( )
    public function __construct()
    {
        $filePath = tempnam(sys_get_temp_dir(), 'FileByteStream');
        if ($filePath === false) {
            throw new Swift_IoException('Failed to retrieve temporary file name.');
        }
        parent::__construct($filePath, true);
    }
Swift_ByteStream_TemporaryFileByteStream