You are here

class GetExtendedContactDetails in SendinBlue 8.2

Same name and namespace in other branches
  1. 8 src/Tools/Model/GetExtendedContactDetails.php \Drupal\sendinblue\Tools\Model\GetExtendedContactDetails

Hierarchy

Expanded class hierarchy of GetExtendedContactDetails

2 files declare their use of GetExtendedContactDetails
SendinblueApiV2.php in src/Tools/Api/SendinblueApiV2.php
SendinblueApiV3.php in src/Tools/Api/SendinblueApiV3.php

File

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

Namespace

Drupal\sendinblue\Tools\Model
View source
class GetExtendedContactDetails {

  /**
   * @var string*/
  public $email;

  /**
   * @var int*/
  public $id = 0;

  /**
   * @var bool*/
  public $emailBlacklisted;

  /**
   * @var bool*/
  public $smsBlacklisted;

  /**
   * @var \DateTime*/
  public $createdAt;

  /**
   * @var \DateTime*/
  public $modifiedAt;

  /**
   * @var array*/
  public $listIds;
  public $attributes;

  /**
   * GetExtendedContactDetails constructor.
   */
  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']);
  }

  /**
   * @return string
   */
  public function getEmail() : string {
    return $this->email;
  }

  /**
   * @param string $email
   */
  public function setEmail(string $email) {
    $this->email = $email;
  }

  /**
   * @return int
   */
  public function getId() : int {
    return $this->id;
  }

  /**
   * @param int $id
   */
  public function setId($id) {
    $this->id = $id;
  }

  /**
   * @return bool
   */
  public function isEmailBlacklisted() : bool {
    return $this->emailBlacklisted;
  }

  /**
   * @param bool $emailBlacklisted
   */
  public function setEmailBlacklisted(bool $emailBlacklisted) {
    $this->emailBlacklisted = $emailBlacklisted;
  }

  /**
   * @return bool
   */
  public function isSmsBlacklisted() : bool {
    return $this->smsBlacklisted;
  }

  /**
   * @param bool $smsBlacklisted
   */
  public function setSmsBlacklisted(bool $smsBlacklisted) {
    $this->smsBlacklisted = $smsBlacklisted;
  }

  /**
   * @return \DateTime
   */
  public function getCreatedAt() : \DateTime {
    return $this->createdAt;
  }

  /**
   * @param \DateTime $createdAt
   */
  public function setCreatedAt(\DateTime $createdAt) {
    $this->createdAt = $createdAt;
  }

  /**
   * @return \DateTime
   */
  public function getModifiedAt() : \DateTime {
    return $this->modifiedAt;
  }

  /**
   * @param \DateTime $modifiedAt
   */
  public function setModifiedAt(\DateTime $modifiedAt) {
    $this->modifiedAt = $modifiedAt;
  }

  /**
   * @return array
   */
  public function getListIds() : array {
    return $this->listIds;
  }

  /**
   * @param array $listIds
   */
  public function setListIds(array $listIds) {
    $this->listIds = $listIds;
  }

  /**
   * @return mixed
   */
  public function getAttributes() {
    return $this->attributes;
  }

  /**
   * @param mixed $attributes
   */
  public function setAttributes($attributes) {
    $this->attributes = $attributes;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
GetExtendedContactDetails::$attributes public property
GetExtendedContactDetails::$createdAt public property @var \DateTime
GetExtendedContactDetails::$email public property @var string
GetExtendedContactDetails::$emailBlacklisted public property @var bool
GetExtendedContactDetails::$id public property @var int
GetExtendedContactDetails::$listIds public property @var array
GetExtendedContactDetails::$modifiedAt public property @var \DateTime
GetExtendedContactDetails::$smsBlacklisted public property @var bool
GetExtendedContactDetails::getAttributes public function
GetExtendedContactDetails::getCreatedAt public function
GetExtendedContactDetails::getEmail public function
GetExtendedContactDetails::getId public function
GetExtendedContactDetails::getListIds public function
GetExtendedContactDetails::getModifiedAt public function
GetExtendedContactDetails::isEmailBlacklisted public function
GetExtendedContactDetails::isSmsBlacklisted public function
GetExtendedContactDetails::setAttributes public function
GetExtendedContactDetails::setCreatedAt public function
GetExtendedContactDetails::setEmail public function
GetExtendedContactDetails::setEmailBlacklisted public function
GetExtendedContactDetails::setId public function
GetExtendedContactDetails::setListIds public function
GetExtendedContactDetails::setModifiedAt public function
GetExtendedContactDetails::setSmsBlacklisted public function
GetExtendedContactDetails::__construct public function GetExtendedContactDetails constructor.