class GetLists in SendinBlue 8
Same name and namespace in other branches
- 8.2 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\ModelView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GetLists:: |
public | property | @var int | |
GetLists:: |
public | property | @var array | |
GetLists:: |
public | function | ||
GetLists:: |
public | function | ||
GetLists:: |
public | function | ||
GetLists:: |
public | function | ||
GetLists:: |
public | function | ||
GetLists:: |
public | function | GetLists constructor. |