Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
SpecialProtectPage
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3 * @license GPL-2.0-or-later
4 * @file
5 */
6
7namespace MediaWiki\Specials;
8
9use MediaWiki\Search\SearchEngineFactory;
10use MediaWiki\SpecialPage\SpecialRedirectWithAction;
11
12/**
13 * Redirect from Special:ProtectPage/$1 to index.php?title=$1&action=protect.
14 *
15 * @since 1.38
16 * @ingroup SpecialPage
17 * @author Zabe
18 */
19class SpecialProtectPage extends SpecialRedirectWithAction {
20
21    public function __construct(
22        SearchEngineFactory $searchEngineFactory
23    ) {
24        parent::__construct( 'ProtectPage', 'protect', 'protectpage', $searchEngineFactory );
25    }
26
27    // Messages, for grep:
28    // specialprotectpage-page
29    // specialprotectpage-submit
30}
31
32// @codeCoverageIgnoreStart
33/**
34 * Retain the old class name for backwards compatibility.
35 * @deprecated since 1.41
36 */
37class_alias( SpecialProtectPage::class, 'SpecialProtectPage' );
38// @codeCoverageIgnoreEnd