public function setAttributes($attributes) { $this->attributes = array_merge($this->attributes, (array) $attributes); return $this; }