UIDForgotEmail::getSubject()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
require_once('class.FlipsideProfileEmail.php');
3
4
class UIDForgotEmail extends FlipsideProfileEmail
5
{
6
    public function __construct($user)
7
    {
8
        parent::__construct($user);
9
        $this->addToAddress($user->mail, $user->displayName);
10
    }
11
12
    public function getSubject()
13
    {
14
        return 'Burning Flipside Username Recovery';
15
    }
16
17
    public function getHTMLBody()
18
    {
19
        return 'Someone (quite possibly you) has requested a reminder of your Flipside username.<br/>
20
                Your Flipside username is <strong>'.$this->user->uid.'</strong><br/>
21
                If you did not request this reminder, don\'t worry. This email was sent only to you.<br/>
22
                If you receive many of these requests, you can notify the technology team ([email protected]).<br/>
23
                Thank you,<br/>
24
                Burning Flipside Technology Team';
25
    }
26
27
    public function getTextBody()
28
    {
29
        return 'Someone (quite possibly you) has requested a reminder of your Flipside username.
30
                Your Flipside username is '.$this->user->uid.'
31
                If you did not request this reminder, don\'t worry. This email was sent only to you.
32
                If you receive many of these requests, you can notify the technology team ([email protected]).
33
                Thank you,
34
                Burning Flipside Technology Team';
35
    }
36
}
37
/* vim: set tabstop=4 shiftwidth=4 expandtab: */
38