/** * removeNotification * * @param string $type * @param int $targetId * @param int $userId * * @return bool */ public static function removeNotification($type, $targetId, $userId) { $mapper = new NotificationMapper(); return $mapper->delete(['type' => $type, 'target_id' => $targetId, 'user_id' => $userId]); }