Modifying BMailTemplate

This commit is contained in:
Loann 2020-04-28 18:49:28 +02:00
parent f29b5a8854
commit f2a1053655
1 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ class BMailTemplate implements \JsonSerializable
*
* @var string
*/
public $template;
public $template_id;
/**
* The sender for the message
@ -39,9 +39,9 @@ class BMailTemplate implements \JsonSerializable
*/
public $parameters = [];
public function __construct(string $template)
public function __construct(string $template_id)
{
$this->template = $template;
$this->template_id = $template_id;
}
/**
@ -155,7 +155,7 @@ class BMailTemplate implements \JsonSerializable
public function toArray(): array
{
return [
'template' => $this->template,
'template_id' => $this->template_id,
'sender' => $this->sender,
'replyTo' => $this->replyTo,
'recipients' => $this->recipients,