GetAttributesAttributes.php in SendinBlue 7.2
File
includes/Model/GetAttributesAttributes.php
View source
<?php
class GetAttributesAttributes {
public $name;
public $category;
public $type;
public $calculatedValue;
public $enumeration;
public function __construct($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() {
return $this->name;
}
public function setName($name) {
$this->name = $name;
}
public function getCategory() {
return $this->category;
}
public function setCategory($category) {
$this->category = $category;
}
public function getType() {
return $this->type;
}
public function setType($type) {
$this->type = $type;
}
public function getCalculatedValue() {
return $this->calculatedValue;
}
public function setCalculatedValue($calculatedValue) {
$this->calculatedValue = $calculatedValue;
}
public function getEnumeration() {
return $this->enumeration;
}
public function setEnumeration($enumeration) {
$this->enumeration = $enumeration;
}
}