public function __construct(string $name, array $data = []) { $this->name = $name; $this->data = $data; $this->parentAttributes = new Attributes(); }