You are here

public function GetLists::__construct in SendinBlue 8

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

GetLists constructor.

Parameters

array $lists:

int $count:

File

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

Class

GetLists

Namespace

Drupal\sendinblue\Tools\Model

Code

public function __construct(array $lists) {
  foreach ($lists as $list) {
    $this
      ->addList($list);
  }
  $this
    ->setCount(count($this
    ->getLists()));
}