Merge "Declare BaseBlacklist::filter interface to avoid IDE warnings"

This commit is contained in:
jenkins-bot 2015-06-25 17:57:51 +00:00 committed by Gerrit Code Review
commit 3ba94f683b
2 changed files with 17 additions and 0 deletions

View file

@ -63,6 +63,14 @@ abstract class BaseBlacklist {
}
}
/**
* @param array $links
* @param Title $title
* @param bool $preventLog
* @return mixed
*/
abstract public function filter( array $links, Title $title, $preventLog = false );
/**
* Adds a blacklist class to the registry
*

9
EmailBlacklist.php Normal file → Executable file
View file

@ -4,6 +4,15 @@
* Email Blacklisting
*/
class EmailBlacklist extends BaseBlacklist {
/**
* @param array $links
* @param Title $title
* @param bool $preventLog
* @return mixed
*/
public function filter( array $links, Title $title, $preventLog = false ) {
throw new LogicException( __CLASS__ . ' cannot be used to filter links.' );
}
/**
* Returns the code for the blacklist implementation