Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
4 / 4
CRAP
100.00% covered (success)
100.00%
1 / 1
RemoveSenseRequest
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
4 / 4
4
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
2 / 2
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
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 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\DataAccess\ChangeOp\ChangeOpRemoveSense;
6use Wikibase\Lexeme\Domain\Model\SenseId;
7
8/**
9 * @license GPL-2.0-or-later
10 */
11class RemoveSenseRequest {
12
13    private SenseId $senseId;
14
15    /**
16     * @var int|null
17     */
18    private $baseRevId;
19
20    /**
21     * @param SenseId $senseId
22     * @param int|null $baseRevId
23     */
24    public function __construct( SenseId $senseId, $baseRevId ) {
25        $this->senseId = $senseId;
26        $this->baseRevId = $baseRevId;
27    }
28
29    public function getChangeOp(): ChangeOpRemoveSense {
30        return new ChangeOpRemoveSense( $this->senseId );
31    }
32
33    public function getSenseId(): SenseId {
34        return $this->senseId;
35    }
36
37    /**
38     * @return int|null
39     */
40    public function getBaseRevId() {
41        return $this->baseRevId;
42    }
43
44}