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
EditSenseElementsRequest
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
 getSenseId
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\SenseId;
6use Wikibase\Repo\ChangeOp\ChangeOp;
7
8/**
9 * @license GPL-2.0-or-later
10 */
11class EditSenseElementsRequest {
12
13    private SenseId $senseId;
14    private ChangeOp $changeOp;
15    /** @var int|null */
16    private $baseRevId;
17
18    public function __construct( SenseId $senseId, ChangeOp $changeOp, $baseRevId ) {
19        $this->senseId = $senseId;
20        $this->changeOp = $changeOp;
21        $this->baseRevId = $baseRevId;
22    }
23
24    public function getChangeOp(): ChangeOp {
25        return $this->changeOp;
26    }
27
28    public function getSenseId(): SenseId {
29        return $this->senseId;
30    }
31
32    public function getBaseRevId() {
33        return $this->baseRevId;
34    }
35
36}