public function setStatusAttribute(UserStatus $status) { $this->attributes['status'] = $status->getValue(); }