public function replaceAttributes($attributes) { $this->attributes = (array) $attributes; return $this; }