You are here

class GetExtendedList in SendinBlue 8

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

Class GetExtendedList.

@package Drupal\sendinblue\Tools\Model

'id' => 'int', 'name' => 'string', 'totalBlacklisted' => 'int', 'totalSubscribers' => 'int', 'folderId' => 'int', 'createdAt' => '\DateTime', 'campaignStats' => '\SendinBlue\Client\Model\GetExtendedListCampaignStats[]', 'dynamicList' => 'bool'

Hierarchy

Expanded class hierarchy of GetExtendedList

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

File

src/Tools/Model/GetExtendedList.php, line 21

Namespace

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

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

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

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

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

  /**
   * @var int*/
  public $folderId;

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

  /**
   * @var int*/
  public $dynamicList;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
GetExtendedList::$createdAt public property @var \DateTime
GetExtendedList::$dynamicList public property @var int
GetExtendedList::$folderId public property @var int
GetExtendedList::$id public property @var int
GetExtendedList::$name public property @var string
GetExtendedList::$totalBlacklisted public property @var int
GetExtendedList::$totalSubscribers public property @var int
GetExtendedList::getCreatedAt public function
GetExtendedList::getDynamicList public function
GetExtendedList::getFolderId public function
GetExtendedList::getId public function
GetExtendedList::getName public function
GetExtendedList::getTotalBlacklisted public function
GetExtendedList::getTotalSubscribers public function
GetExtendedList::setCreatedAt public function
GetExtendedList::setDynamicList public function
GetExtendedList::setFolderId public function
GetExtendedList::setId public function
GetExtendedList::setName public function
GetExtendedList::setTotalBlacklisted public function
GetExtendedList::setTotalSubscribers public function
GetExtendedList::__construct public function GetExtendedList constructor.