public function category($category)
    {
        $categoryId = NotificationCategory::getIdByCategory($category);
        $this->setNotificationData('category_id', $categoryId);

        return $this;
    }
public function category($category)
    {
        $categoryId = NotificationCategory::getIdByCategory($category);
        $this->setNotificationData('category_id', $categoryId);

        return $this;
    }
public function category ( $ category ) { $ categoryId = NotificationCategory :: getIdByCategory ( $ category ) ; $ this -> setNotificationData ( 'category_id' , $ categoryId ) ; return $ this ; }
Set the category for this notification.

@param string|int|\Fenos\Notifynder\Models\NotificationCategory $category
@return $this
Set the category for this notification .