Upgrade to 3.4.4
This commit is contained in:
@@ -19,30 +19,64 @@ class Body
|
||||
{
|
||||
use Properties;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $html;
|
||||
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
protected $text;
|
||||
|
||||
/**
|
||||
* Email body constructor
|
||||
*
|
||||
* @param array $props
|
||||
*/
|
||||
public function __construct(array $props = [])
|
||||
{
|
||||
$this->setProperties($props);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the HTML content of the email body
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function html()
|
||||
{
|
||||
return $this->html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the plain text content of the email body
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function text()
|
||||
{
|
||||
return $this->text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the HTML content for the email body
|
||||
*
|
||||
* @param string|null $html
|
||||
* @return self
|
||||
*/
|
||||
protected function setHtml(string $html = null)
|
||||
{
|
||||
$this->html = $html;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the plain text content for the email body
|
||||
*
|
||||
* @param string|null $text
|
||||
* @return self
|
||||
*/
|
||||
protected function setText(string $text = null)
|
||||
{
|
||||
$this->text = $text;
|
||||
|
||||
Reference in New Issue
Block a user