Modifying BMailTemplate
This commit is contained in:
parent
f29b5a8854
commit
f2a1053655
|
@ -9,7 +9,7 @@ class BMailTemplate implements \JsonSerializable
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public $template;
|
public $template_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The sender for the message
|
* The sender for the message
|
||||||
|
@ -39,9 +39,9 @@ class BMailTemplate implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
public $parameters = [];
|
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
|
public function toArray(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'template' => $this->template,
|
'template_id' => $this->template_id,
|
||||||
'sender' => $this->sender,
|
'sender' => $this->sender,
|
||||||
'replyTo' => $this->replyTo,
|
'replyTo' => $this->replyTo,
|
||||||
'recipients' => $this->recipients,
|
'recipients' => $this->recipients,
|
||||||
|
|
Loading…
Reference in New Issue