You are here

public function GetSmtpTemplateOverview::__construct in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/Tools/Model/GetSmtpTemplateOverview.php \Drupal\sendinblue\Tools\Model\GetSmtpTemplateOverview::__construct()

GetSmtpTemplates construcfromr.

Parameters

array $data:

File

src/Tools/Model/GetSmtpTemplateOverview.php, line 34

Class

GetSmtpTemplateOverview

Namespace

Drupal\sendinblue\Tools\Model

Code

public function __construct(array $data = []) {
  $this->id = $data['id'];
  $this->subject = $data['subject'];
  $this->htmlContent = $data['htmlContent'];
  $this->name = $data['name'];
  $this->fromEmail = $data['sender']['email'];
  $this->fromName = $data['sender']['name'];
}