public function setAttribute($attribute, $value = null) { $this->attributes[$attribute] = $value; return $this; }