fix boolean field

This commit is contained in:
nupplaPhil 2020-01-26 20:41:53 +01:00
parent 2b8f067715
commit 4efba4d0cf
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
3 changed files with 6 additions and 6 deletions

View file

@ -91,9 +91,9 @@ class EMail implements IEmail
/**
* {@inheritDoc}
*/
public function getMessage(bool $text = false)
public function getMessage(bool $plain = false)
{
if ($text) {
if ($plain) {
return $this->msgText;
} else {
return $this->msgHtml;

View file

@ -56,11 +56,11 @@ interface IEmail
/**
* Gets the message body of this email (either html or plaintext)
*
* @param boolean $text True, if returned as plaintext
* @param boolean $plain True, if returned as plaintext
*
* @return string
*/
function getMessage(bool $text = false);
function getMessage(bool $plain = false);
/**
* Gets any additional mail header