You are here

public function GetSmtpTemplates::__construct in SendinBlue 8

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

GetSmtpTemplates constructor.

Parameters

array $data:

File

src/Tools/Model/GetSmtpTemplates.php, line 22

Class

GetSmtpTemplates

Namespace

Drupal\sendinblue\Tools\Model

Code

public function __construct(array $data = []) {
  $this->count = $data['count'];
  if (!empty($data['templates'])) {
    foreach ($data['templates'] as $template) {
      $this->templates[] = new GetSmtpTemplateOverview($template);
    }
  }
}