Skip to content

Commit b28cbd8

Browse files
author
Marick
committed
make sure attributes are always decrypted
1 parent adfb9a8 commit b28cbd8

File tree

1 file changed

+72
-1
lines changed

1 file changed

+72
-1
lines changed

src/Email.php

+72-1
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,37 @@ public function getRecipient()
8585
return $this->recipient;
8686
}
8787

88+
/**
89+
*
90+
* Get the e-mail recipient.
91+
*
92+
* @return string
93+
*/
94+
public function getRecipientAttribute()
95+
{
96+
return $this->recipient;
97+
}
98+
8899
/**
89100
* Get the e-mail from.
90101
*
91-
* @return array
102+
* @return string
92103
*/
93104
public function getFrom()
94105
{
95106
return $this->from;
96107
}
97108

109+
/**
110+
* Get the e-mail from.
111+
*
112+
* @return string
113+
*/
114+
public function getFromAttribute()
115+
{
116+
return $this->from;
117+
}
118+
98119
/**
99120
* Get the e-mail from address.
100121
*
@@ -137,6 +158,16 @@ public function getCc()
137158
return $this->cc;
138159
}
139160

161+
/**
162+
* Get the e-mail CC addresses.
163+
*
164+
* @return array
165+
*/
166+
public function getCcAttribute()
167+
{
168+
return $this->cc;
169+
}
170+
140171
/**
141172
* Get the e-mail BCC addresses.
142173
*
@@ -147,6 +178,16 @@ public function getBcc()
147178
return $this->bcc;
148179
}
149180

181+
/**
182+
* Get the e-mail BCC addresses.
183+
*
184+
* @return array
185+
*/
186+
public function getBccAttribute()
187+
{
188+
return $this->bcc;
189+
}
190+
150191
/**
151192
* Get the e-mail subject.
152193
*
@@ -157,6 +198,16 @@ public function getSubject()
157198
return $this->subject;
158199
}
159200

201+
/**
202+
* Get the e-mail subject.
203+
*
204+
* @return string
205+
*/
206+
public function getSubjectAttribute()
207+
{
208+
return $this->view;
209+
}
210+
160211
/**
161212
* Get the e-mail view.
162213
*
@@ -177,6 +228,16 @@ public function getVariables()
177228
return $this->variables;
178229
}
179230

231+
/**
232+
* Get the e-mail variables.
233+
*
234+
* @return array
235+
*/
236+
public function getVariablesAttribute()
237+
{
238+
return $this->variables;
239+
}
240+
180241
/**
181242
* Get the e-mail body.
182243
*
@@ -187,6 +248,16 @@ public function getBody()
187248
return $this->body;
188249
}
189250

251+
/**
252+
* Get the e-mail body.
253+
*
254+
* @return string
255+
*/
256+
public function getBodyAttribute()
257+
{
258+
return $this->body;
259+
}
260+
190261
/**
191262
* Get the e-mail attachments.
192263
*

0 commit comments

Comments
 (0)