GetAttributesAttributes.php in SendinBlue 8.2
File
src/Tools/Model/GetAttributesAttributes.php
View source
<?php
namespace Drupal\sendinblue\Tools\Model;
class GetAttributesAttributes {
public $name;
public $category;
public $type;
public $calculatedValue;
public $enumeration;
public function __construct(array $data = []) {
$this->name = $data['name'];
$this->type = $data['type'] ?? NULL;
$this->category = $data['category'];
if (!empty($data['calculatedValue'])) {
$this->calculatedValue = $data['calculatedValue'];
}
if (!empty($data['enumeration'])) {
foreach ($data['enumeration'] as $enumeration) {
$this->enumeration[] = new GetAttributesEnumeration($enumeration);
}
}
}
public function getName() : string {
return $this->name;
}
public function setName(string $name) {
$this->name = $name;
}
public function getCategory() : string {
return $this->category;
}
public function setCategory(string $category) {
$this->category = $category;
}
public function getType() : string {
return $this->type;
}
public function setType(string $type) {
$this->type = $type;
}
public function getCalculatedValue() {
return $this->calculatedValue;
}
public function setCalculatedValue(string $calculatedValue) {
$this->calculatedValue = $calculatedValue;
}
public function getEnumeration() : array {
return $this->enumeration;
}
public function setEnumeration(array $enumeration) {
$this->enumeration = $enumeration;
}
}