Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 18
0.00% covered (danger)
0.00%
0 / 5
CRAP
0.00% covered (danger)
0.00%
0 / 1
ApiFlowUndoEditTopicSummary
0.00% covered (danger)
0.00%
0 / 18
0.00% covered (danger)
0.00%
0 / 5
30
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getAction
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getBlockParams
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
 getAllowedParams
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 1
2
 getExamplesMessages
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace Flow\Api;
4
5use Wikimedia\ParamValidator\ParamValidator;
6
7class ApiFlowUndoEditTopicSummary extends ApiFlowBaseGet {
8    public function __construct( $api, $modName ) {
9        parent::__construct( $api, $modName, 'uets' );
10    }
11
12    protected function getAction() {
13        return 'undo-edit-topic-summary';
14    }
15
16    protected function getBlockParams() {
17        return [
18            'topicsummary' => $this->extractRequestParams(),
19            'topic' => [],
20        ];
21    }
22
23    public function getAllowedParams() {
24        return [
25            'startId' => [
26                ParamValidator::PARAM_REQUIRED => true,
27            ],
28            'endId' => [
29                ParamValidator::PARAM_REQUIRED => true,
30            ],
31        ] + parent::getAllowedParams();
32    }
33
34    /**
35     * @inheritDoc
36     */
37    protected function getExamplesMessages() {
38        return [
39            'action=flow&submodule=undo-edit-topic-summary&page=Topic:S2tycnas4hcucw8w&uetsstartId=???&uetsendId=???'
40                => 'apihelp-flow+undo-edit-topic-summary-example-1',
41        ];
42    }
43}