class GetSmtpTemplates in SendinBlue 8
Same name and namespace in other branches
- 8.2 src/Tools/Model/GetSmtpTemplates.php \Drupal\sendinblue\Tools\Model\GetSmtpTemplates
Hierarchy
- class \Drupal\sendinblue\Tools\Model\GetSmtpTemplates
Expanded class hierarchy of GetSmtpTemplates
2 files declare their use of GetSmtpTemplates
- SendinblueApiV2.php in src/
Tools/ Api/ SendinblueApiV2.php - SendinblueApiV3.php in src/
Tools/ Api/ SendinblueApiV3.php
File
- src/
Tools/ Model/ GetSmtpTemplates.php, line 8
Namespace
Drupal\sendinblue\Tools\ModelView source
class GetSmtpTemplates {
/**
* @var string*/
public $count;
/**
* @var GetSmtpTemplateOverview[]*/
public $templates;
/**
* GetSmtpTemplates constructor.
*
* @param array $data
*/
public function __construct(array $data = []) {
$this->count = $data['count'];
if (!empty($data['templates'])) {
foreach ($data['templates'] as $template) {
$this->templates[] = new GetSmtpTemplateOverview($template);
}
}
}
/**
* @return string
*/
public function getCount() : string {
return $this->count;
}
/**
* @param string $count
*/
public function setCount(string $count) {
$this->count = $count;
}
/**
* @return GetSmtpTemplateOverview[]
*/
public function getTemplates() : array {
return $this->templates;
}
/**
* @param GetSmtpTemplateOverview[] $templates
*/
public function setTemplates(array $templates) {
$this->templates = $templates;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GetSmtpTemplates:: |
public | property | @var string | |
GetSmtpTemplates:: |
public | property | @var GetSmtpTemplateOverview[] | |
GetSmtpTemplates:: |
public | function | ||
GetSmtpTemplates:: |
public | function | ||
GetSmtpTemplates:: |
public | function | ||
GetSmtpTemplates:: |
public | function | ||
GetSmtpTemplates:: |
public | function | GetSmtpTemplates constructor. |