Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
83.33% covered (warning)
83.33%
5 / 6
75.00% covered (warning)
75.00%
3 / 4
CRAP
0.00% covered (danger)
0.00%
0 / 1
EditFormElementsRequest
83.33% covered (warning)
83.33%
5 / 6
75.00% covered (warning)
75.00%
3 / 4
4.07
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
3 / 3
100.00% covered (success)
100.00%
1 / 1
1
 getChangeOp
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getFormId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getBaseRevId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace Wikibase\Lexeme\MediaWiki\Api;
4
5use Wikibase\Lexeme\Domain\Model\FormId;
6use Wikibase\Repo\ChangeOp\ChangeOp;
7
8/**
9 * @license GPL-2.0-or-later
10 */
11class EditFormElementsRequest {
12
13    private FormId $formId;
14    private ChangeOp $changeOp;
15    /** @var int|null */
16    private $baseRevId;
17
18    public function __construct( FormId $formId, ChangeOp $changeOp, $baseRevId ) {
19        $this->formId = $formId;
20        $this->changeOp = $changeOp;
21        $this->baseRevId = $baseRevId;
22    }
23
24    public function getChangeOp(): ChangeOp {
25        return $this->changeOp;
26    }
27
28    public function getFormId(): FormId {
29        return $this->formId;
30    }
31
32    public function getBaseRevId() {
33        return $this->baseRevId;
34    }
35
36}