You are here

public function GetAttributes::__construct in SendinBlue 8.2

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

GetAttributes constructor.

Parameters

GetAttributesAttributes[] $attributes:

File

src/Tools/Model/GetAttributes.php, line 18

Class

GetAttributes

Namespace

Drupal\sendinblue\Tools\Model

Code

public function __construct(array $attributes) {
  if (!empty($attributes['attributes'])) {
    foreach ($attributes['attributes'] as $attribute) {
      $this->attributes[] = new GetAttributesAttributes($attribute);
    }
  }
}