public function GetExtendedList::__construct in SendinBlue 8
Same name and namespace in other branches
- 8.2 src/Tools/Model/GetExtendedList.php \Drupal\sendinblue\Tools\Model\GetExtendedList::__construct()
GetExtendedList constructor.
File
- src/
Tools/ Model/ GetExtendedList.php, line 47
Class
- GetExtendedList
- Class GetExtendedList.
Namespace
Drupal\sendinblue\Tools\ModelCode
public function __construct(array $data = []) {
$this
->setId($data['id']);
$this
->setName($data['name']);
$this
->setTotalBlacklisted($data['totalBlacklisted']);
$this
->setTotalSubscribers($data['totalSubscribers']);
$this
->setFolderId($data['folderId']);
$this
->setDynamicList($data['dynamicList']);
if (!empty($data['createdAt'])) {
$this
->setCreatedAt(new \DateTime($data['createdAt']));
}
}