name = $name; $this->timestamp = $timestamp; $this->attributes = $attributes ?? new Attributes(); } public function setAttribute(string $key, $value): self { $this->attributes->setAttribute($key, $value); return $this; } public function getAttributes(): API\Attributes { return $this->attributes; } public function getName(): string { return $this->name; } public function getTimestamp(): int { return $this->timestamp; } }