You are here

class GetLists in SendinBlue 8.2

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

Hierarchy

  • class \Drupal\sendinblue\Tools\Model\GetLists

Expanded class hierarchy of GetLists

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

File

src/Tools/Model/GetLists.php, line 8

Namespace

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

  /**
   * @var array*/
  public $lists = [];

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

  /**
   * GetLists constructor.
   *
   * @param array $lists
   * @param int $count
   */
  public function __construct(array $lists) {
    foreach ($lists as $list) {
      $this
        ->addList($list);
    }
    $this
      ->setCount(count($this
      ->getLists()));
  }

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

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

  /**
   * @param array $list
   */
  public function addList(array $list) {
    $this->lists[] = $list;
  }

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
GetLists::$count public property @var int
GetLists::$lists public property @var array
GetLists::addList public function
GetLists::getCount public function
GetLists::getLists public function
GetLists::setCount public function
GetLists::setLists public function
GetLists::__construct public function GetLists constructor.