public function setAttributes(array $attributes) { $this->attributes = $attributes; $this->updateMessage(); }