You are here

public function GetExtendedContactDetails::__construct in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/Tools/Model/GetExtendedContactDetails.php \Drupal\sendinblue\Tools\Model\GetExtendedContactDetails::__construct()

GetExtendedContactDetails constructor.

File

src/Tools/Model/GetExtendedContactDetails.php, line 38

Class

GetExtendedContactDetails

Namespace

Drupal\sendinblue\Tools\Model

Code

public function __construct(array $data = []) {
  $this
    ->setId($data['id']);
  $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']);
  $this
    ->setAttributes($data['attributes']);
}