allowed; } public function status(): int { return $this->status; } public function error(): string { return $this->error; } public function attributes(): array { return $this->attributes; } public function attribute(string $key, mixed $default = null): mixed { return array_key_exists($key, $this->attributes) ? $this->attributes[$key] : $default; } }