Issues (42)

app/Emails/class.PendingRejectedEmail.php (1 issue)

1
<?php
2
namespace Emails;
3
4
class PendingRejectedEmail extends VolunteerEmail
5
{
6
    public function __construct($userProfile)
7
    {
8
        parent::__construct($userProfile);
9
        $this->addToAddress($userProfile->email);
10
    }
11
12
    public function getSubject()
13
    {
14
        return 'Burning Flipside: Volunteer Shift removed';
15
    }
16
17
    public function setShift($shift)
18
    {
19
        $this->shift = $shift;
0 ignored issues
show
Bug Best Practice introduced by
The property shift does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
20
    }
21
22
    public function getHTMLBody()
23
    {
24
        return 'You are recieving this message because your pending shift for '.$this->shift['roleID'].' starting at '.$this->shift['startTime'].' has been removed.<br/>
25
                Thank you for your interest in this shift, but we could not accomidate your request for this shift at this time.<br/>
26
                Thank you,<br/>
27
                Burning Flipside Volunteer Team';
28
    }
29
30
    public function getTextBody()
31
    {
32
        return 'You are recieving this message because your pending shift for '.$this->shift['roleID'].' starting at '.$this->shift['startTime'].' has been removed.
33
                Thank you for your interest in this shift, but we could not accomidate your request for this shift at this time.
34
                Thank you,
35
                Burning Flipside Volunteer Team';
36
    }
37
}
38
/* vim: set tabstop=4 shiftwidth=4 expandtab: */
39