public function GetExtendedList::__construct in SendinBlue 7.2
GetExtendedList constructor.
File
- includes/
Model/ GetExtendedList.php, line 43
Class
- GetExtendedList
- Class GetExtendedList.
Code
public function __construct($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']));
}
}