Upgrade to 3.7.1

This commit is contained in:
Bastian Allgeier
2022-07-12 13:33:21 +02:00
parent 7931eb5e47
commit 1ad1eaf387
377 changed files with 63981 additions and 63824 deletions

View File

@@ -17,69 +17,69 @@ use Kirby\Toolkit\Properties;
*/
class Body
{
use Properties;
use Properties;
/**
* @var string
*/
protected $html;
/**
* @var string
*/
protected $html;
/**
* @var string
*/
protected $text;
/**
* @var string
*/
protected $text;
/**
* Email body constructor
*
* @param array $props
*/
public function __construct(array $props = [])
{
$this->setProperties($props);
}
/**
* Email body constructor
*
* @param array $props
*/
public function __construct(array $props = [])
{
$this->setProperties($props);
}
/**
* Returns the HTML content of the email body
*
* @return string
*/
public function html()
{
return $this->html ?? '';
}
/**
* Returns the HTML content of the email body
*
* @return string
*/
public function html()
{
return $this->html ?? '';
}
/**
* Returns the plain text content of the email body
*
* @return string
*/
public function text()
{
return $this->text ?? '';
}
/**
* Returns the plain text content of the email body
*
* @return string
*/
public function text()
{
return $this->text ?? '';
}
/**
* Sets the HTML content for the email body
*
* @param string|null $html
* @return $this
*/
protected function setHtml(string $html = null)
{
$this->html = $html;
return $this;
}
/**
* Sets the HTML content for the email body
*
* @param string|null $html
* @return $this
*/
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 $this
*/
protected function setText(string $text = null)
{
$this->text = $text;
return $this;
}
/**
* Sets the plain text content for the email body
*
* @param string|null $text
* @return $this
*/
protected function setText(string $text = null)
{
$this->text = $text;
return $this;
}
}