public function refresh(array $attributes)
{
foreach ($attributes as $attribute => $value) {
if ($this->has($attribute)) {
$this->attributes[$this->resolveAttributeName($attribute)] = $value;
} else {
$this->attributes[$attribute] = $value;
}
}
return $this;
}