Merge "NotifUser: Add a doc comment for getForeignCount()"

This commit is contained in:
jenkins-bot 2018-06-02 17:20:28 +00:00 committed by Gerrit Code Review
commit aa984f1b9b

View file

@ -695,6 +695,11 @@ class MWEchoNotifUser {
return $this->mForeignData; return $this->mForeignData;
} }
/**
* Get the number of foreign notifications in a given section.
* @param string $section One of EchoAttributeManager::$sections
* @return int Number of foreign notifications
*/
protected function getForeignCount( $section = EchoAttributeManager::ALL ) { protected function getForeignCount( $section = EchoAttributeManager::ALL ) {
global $wgEchoSectionTransition, $wgEchoBundleTransition; global $wgEchoSectionTransition, $wgEchoBundleTransition;
$count = 0; $count = 0;