mail.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. /**
  3. * Minimal set of classes necessary for UserMailer to be happy. Types
  4. * taken from documentation at pear.php.net.
  5. * phpcs:ignoreFile
  6. */
  7. class PEAR {
  8. /**
  9. * @param mixed $data
  10. * @return bool
  11. */
  12. public static function isError( $data ) {
  13. }
  14. }
  15. class PEAR_Error {
  16. /**
  17. * @return string
  18. */
  19. public function getMessage() {
  20. }
  21. }
  22. class Mail {
  23. /**
  24. * @param string $driver
  25. * @param array $params
  26. * @return self
  27. */
  28. static public function factory( $driver, array $params = [] ) {
  29. }
  30. /**
  31. * @param mixed $recipients
  32. * @param array $headers
  33. * @param string $body
  34. * @return bool|PEAR_Error
  35. */
  36. public function send( $recipients, array $headers, $body ) {
  37. }
  38. }
  39. class Mail_smtp extends Mail {
  40. }
  41. class Mail_mime {
  42. /**
  43. * @param mixed $params
  44. */
  45. public function __construct( $params = [] ) {
  46. }
  47. /**
  48. * @param string $data
  49. * @param bool $isfile
  50. * @param bool $append
  51. * @return bool|PEAR_Error
  52. */
  53. public function setTXTBody( $data, $isfile = false, $append = false ) {
  54. }
  55. /**
  56. * @param string $data
  57. * @param bool $isfile
  58. * @return bool|PEAR_Error
  59. */
  60. public function setHTMLBody( $data, $isfile = false ) {
  61. }
  62. /**
  63. * @param array|null $parms
  64. * @param mixed $filename
  65. * @param bool $skip_head
  66. * @return string|bool|PEAR_Error
  67. */
  68. public function get( $params = null, $filename = null, $skip_head = false ) {
  69. }
  70. /**
  71. * @param array|null $xtra_headers
  72. * @param bool $overwrite
  73. * @param bool $skip_content
  74. * @return array
  75. */
  76. public function headers( array $xtra_headers = null, $overwrite = false, $skip_content = false ) {
  77. }
  78. }