GetSmtpTemplates.php in SendinBlue 8
File
src/Tools/Model/GetSmtpTemplates.php
View source
<?php
namespace Drupal\sendinblue\Tools\Model;
class GetSmtpTemplates {
public $count;
public $templates;
public function __construct(array $data = []) {
$this->count = $data['count'];
if (!empty($data['templates'])) {
foreach ($data['templates'] as $template) {
$this->templates[] = new GetSmtpTemplateOverview($template);
}
}
}
public function getCount() : string {
return $this->count;
}
public function setCount(string $count) {
$this->count = $count;
}
public function getTemplates() : array {
return $this->templates;
}
public function setTemplates(array $templates) {
$this->templates = $templates;
}
}