public function GetExtendedContactDetails::__construct in SendinBlue 7.2
GetExtendedContactDetails constructor.
File
- includes/
Model/ GetExtendedContactDetails.php, line 42
Class
Code
public function __construct($data = []) {
$this
->setEmail($data['email']);
$this
->setSmsBlacklisted($data['smsBlacklisted']);
$this
->setEmailBlacklisted($data['emailBlacklisted']);
$this
->setCreatedAt(new \DateTime($data['createdAt']));
$this
->setModifiedAt(new \DateTime($data['modifiedAt']));
$this
->setListIds($data['listIds']);
if (isset($data['id'])) {
$this
->setId($data['id']);
}
if (isset($data['attributes'])) {
$this
->setAttributes($data['attributes']);
}
}