class GetAttributes in SendinBlue 8.2
Same name and namespace in other branches
- 8 src/Tools/Model/GetAttributes.php \Drupal\sendinblue\Tools\Model\GetAttributes
Hierarchy
- class \Drupal\sendinblue\Tools\Model\GetAttributes
Expanded class hierarchy of GetAttributes
2 files declare their use of GetAttributes
- SendinblueApiV2.php in src/
Tools/ Api/ SendinblueApiV2.php - SendinblueApiV3.php in src/
Tools/ Api/ SendinblueApiV3.php
File
- src/
Tools/ Model/ GetAttributes.php, line 8
Namespace
Drupal\sendinblue\Tools\ModelView source
class GetAttributes {
/**
* @var GetAttributesAttributes[]*/
public $attributes = [];
/**
* GetAttributes constructor.
*
* @param GetAttributesAttributes[] $attributes
*/
public function __construct(array $attributes) {
if (!empty($attributes['attributes'])) {
foreach ($attributes['attributes'] as $attribute) {
$this->attributes[] = new GetAttributesAttributes($attribute);
}
}
}
/**
* @return GetAttributesAttributes[]
*/
public function getAttributes() : array {
return $this->attributes;
}
/**
* @param GetAttributesAttributes[] $attributes
*/
public function setAttributes(array $attributes) {
$this->attributes = $attributes;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GetAttributes:: |
public | property | @var GetAttributesAttributes[] | |
GetAttributes:: |
public | function | ||
GetAttributes:: |
public | function | ||
GetAttributes:: |
public | function | GetAttributes constructor. |