Skip to content
Snippets Groups Projects

Refactor/templates

Merged Piotr Potrebka requested to merge refactor/templates into devel
5 files
+ 68
58
Compare changes
  • Side-by-side
  • Inline
Files
5
+ 11
2
@@ -106,7 +106,7 @@ class Email {
*
* @return self
*/
public function set_recipients( array $recipients = [] ): self {
public function set_recipients( array $recipients ): self {
$this->recipients = $recipients;
return $this;
@@ -164,7 +164,7 @@ class Email {
/**
* @return string
*/
public function set_content_type( $type = 'html' ): self {
public function set_content_type( $type ): self {
switch ( $type ) {
case 'plain':
$content_type = 'text/plain';
@@ -200,12 +200,21 @@ class Email {
return $this->content;
}
/**
* @param string $name
* @param string $value
*
* @return $this
*/
public function set_template_attributes( string $name, string $value ): self {
$this->template_attributes[ $name ] = $value;
return $this;
}
/**
* @return array
*/
public function get_template_attributes(): array {
return $this->template_attributes;
}
Loading