* @throws Exception If you give an unknown $typeName
*/
public static function factory( $typeName, IContextSource $context,
- Title $title, array $ids ) {
-
+ Title $title, array $ids
+ ) {
switch ( $typeName ) {
case 'revision':
- $className = 'ChangeTagsRevisionList';
+ $className = ChangeTagsRevisionList::class;
break;
case 'logentry':
- $className = 'ChangeTagsLogList';
+ $className = ChangeTagsLogList::class;
break;
default:
throw new Exception( "Class $typeName requested, but does not exist" );