curl_file.stub.php 951 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /** @generate-class-entries */
  3. /** @not-serializable */
  4. class CURLFile
  5. {
  6. public string $name = "";
  7. public string $mime = "";
  8. public string $postname = "";
  9. public function __construct(string $filename, ?string $mime_type = null, ?string $posted_filename = null) {}
  10. /** @tentative-return-type */
  11. public function getFilename(): string {}
  12. /** @tentative-return-type */
  13. public function getMimeType(): string {}
  14. /** @tentative-return-type */
  15. public function getPostFilename(): string {}
  16. /** @tentative-return-type */
  17. public function setMimeType(string $mime_type): void {}
  18. /** @tentative-return-type */
  19. public function setPostFilename(string $posted_filename): void {}
  20. }
  21. class CURLStringFile
  22. {
  23. public string $data;
  24. public string $postname;
  25. public string $mime;
  26. public function __construct(string $data, string $postname, string $mime = "application/octet-stream") {}
  27. }