public function GetSmtpTemplates::__construct in SendinBlue 8
Same name and namespace in other branches
- 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
Namespace
Drupal\sendinblue\Tools\ModelCode
public function __construct(array $data = []) {
$this->count = $data['count'];
if (!empty($data['templates'])) {
foreach ($data['templates'] as $template) {
$this->templates[] = new GetSmtpTemplateOverview($template);
}
}
}