Declare BaseBlacklist::filter interface to avoid IDE warnings

Change-Id: I84ee4bcb370d2027f5879a921455fffc9a808e9a
This commit is contained in:
Aaron Schulz 2015-06-22 13:00:28 -07:00
parent c5e5c1743b
commit 5908dd9a3d
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