public function attributes($value = null)
{
if ($value and !is_array($value)) {
throw new \Exception("Attributes should be an array.");
}
if ($value) {
$this->attributes = array_merge($this->attributes, $value);
return $this;
}
return $this->attributes;
}