Merge "Update docs/hooks.txt for ShowSearchHitTitle"
[mediawiki.git] / tests / phan / stubs / mail.php
blobe906cdb8fff803542aa126c8468fad472c802578
1 <?php
3 // @codingStandardsIgnoreFile
5 /**
6 * Minimal set of classes necessary for UserMailer to be happy. Types
7 * taken from documentation at pear.php.net.
8 */
9 class PEAR {
10 /**
11 * @param mixed $data
12 * @return bool
14 public static function isError( $data ) {
18 class PEAR_Error {
19 /**
20 * @return string
22 public function getMessage() {
26 class Mail {
27 /**
28 * @param string $driver
29 * @param array $params
30 * @return self
32 static public function factory( $driver, array $params = [] ) {
35 /**
36 * @param mixed $recipients
37 * @param array $headers
38 * @param string $body
39 * @return bool|PEAR_Error
41 public function send( $recipients, array $headers, $body ) {
45 class Mail_smtp extends Mail {
48 class Mail_mime {
49 /**
50 * @param mixed $params
52 public function __construct( $params = [] ) {
55 /**
56 * @param string $data
57 * @param bool $isfile
58 * @param bool $append
59 * @return bool|PEAR_Error
61 public function setTXTBody( $data, $isfile = false, $append = false ) {
64 /**
65 * @param string $data
66 * @param bool $isfile
67 * @return bool|PEAR_Error
69 public function setHTMLBody( $data, $isfile = false ) {
72 /**
73 * @param array|null $parms
74 * @param mixed $filename
75 * @param bool $skip_head
76 * @return string|bool|PEAR_Error
78 public function get( $params = null, $filename = null, $skip_head = false ) {
81 /**
82 * @param array|null $xtra_headers
83 * @param bool $overwrite
84 * @param bool $skip_content
85 * @return array
87 public function headers( array $xtra_headers = null, $overwrite = false, $skip_content = false ) {