XnewsletterMailer::getMIMEHeader()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace XoopsModules\Xnewsletter;
4
5
require_once dirname(__DIR__) . '/include/phpmailer/PHPMailerAutoload.php';
6
7
/**
8
 * Class XnewsletterMailer
9
 */
10
class XnewsletterMailer extends \PHPMailer
11
{
12
    /**
13
     * @return string
14
     * @throws \phpmailerException
15
     */
16
    public function getMIMEHeader()
17
    {
18
        $this->preSend();
19
20
        return $this->MIMEHeader;
21
    }
22
23
    /**
24
     * @return string
25
     * @throws \phpmailerException
26
     */
27
    public function getMIMEBody()
28
    {
29
        $this->preSend();
30
31
        return $this->MIMEBody;
32
    }
33
34
    /**
35
     * @return int
36
     * @throws \phpmailerException
37
     */
38
    public function getSize()
39
    {
40
        $this->preSend();
41
42
        return mb_strlen($this->MIMEHeader . $this->MIMEBody);
43
    }
44
}
45