summaryrefslogtreecommitdiff
path: root/ext/curl/curl_file.stub.php
blob: 041b780b9a64bccaae8d63d278a565ca015ed5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php

/** @generate-class-entries */

class CURLFile
{
    /** @var string */
    public $name = "";
    /** @var string */
    public $mime = "";
    /** @var string */
    public $postname = "";

    public function __construct(string $filename, ?string $mime_type = null, ?string $posted_filename = null) {}

    /** @return string */
    public function getFilename() {}

    /** @return string */
    public function getMimeType() {}

    /** @return string */
    public function getPostFilename() {}

    /** @return void */
    public function setMimeType(string $mime_type) {}

    /** @return void */
    public function setPostFilename(string $posted_filename) {}
}

class CURLStringFile
{
    public string $data;
    public string $postname;
    public string $mime;

    public function __construct(string $data, string $postname, string $mime = "application/octet-stream") {}
}