You are here

class GetAttributes in SendinBlue 8

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

Hierarchy

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\Model
View 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

Namesort descending Modifiers Type Description Overrides
GetAttributes::$attributes public property @var GetAttributesAttributes[]
GetAttributes::getAttributes public function
GetAttributes::setAttributes public function
GetAttributes::__construct public function GetAttributes constructor.