class GetSmtpTemplateOverview in SendinBlue 8
Same name and namespace in other branches
- 8.2 src/Tools/Model/GetSmtpTemplateOverview.php \Drupal\sendinblue\Tools\Model\GetSmtpTemplateOverview
Hierarchy
- class \Drupal\sendinblue\Tools\Model\GetSmtpTemplateOverview
Expanded class hierarchy of GetSmtpTemplateOverview
1 file declares its use of GetSmtpTemplateOverview
- SendinblueApiV3.php in src/
Tools/ Api/ SendinblueApiV3.php
File
- src/
Tools/ Model/ GetSmtpTemplateOverview.php, line 8
Namespace
Drupal\sendinblue\Tools\ModelView source
class GetSmtpTemplateOverview {
/**
* @var string*/
public $id;
/**
* @var string*/
public $name;
/**
* @var string*/
public $subject;
/**
* @var string*/
public $htmlContent;
/**
* @var string*/
public $fromEmail;
/**
* @var string*/
public $fromName;
/**
* GetSmtpTemplates construcfromr.
*
* @param array $data
*/
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'];
}
/**
* @return string
*/
public function getId() : string {
return $this->id;
}
/**
* @param string $id
*/
public function setId(string $id) {
$this->id = $id;
}
/**
* @return string
*/
public function getName() : string {
return $this->name;
}
/**
* @param string $name
*/
public function setName(string $name) {
$this->name = $name;
}
/**
* @return string
*/
public function getSubject() : string {
return $this->subject;
}
/**
* @param string $subject
*/
public function setSubject(string $subject) {
$this->subject = $subject;
}
/**
* @return string
*/
public function getHtmlContent() : string {
return $this->htmlContent;
}
/**
* @param string $htmlContent
*/
public function setHtmlContent(string $htmlContent) {
$this->htmlContent = $htmlContent;
}
/**
* @return string
*/
public function getFromEmail() : string {
return $this->fromEmail;
}
/**
* @param string $fromEmail
*/
public function setFromEmail(string $fromEmail) {
$this->fromEmail = $fromEmail;
}
/**
* @return string
*/
public function getFromName() : string {
return $this->fromName;
}
/**
* @param string $fromName
*/
public function setFromName(string $fromName) {
$this->fromName = $fromName;
}
}