Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
5 / 5 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
BlankSense | |
100.00% |
5 / 5 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |||
setId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace Wikibase\Lexeme\Domain\DummyObjects; |
4 | |
5 | use Wikibase\DataModel\Term\TermList; |
6 | use Wikibase\Lexeme\Domain\Model\Sense; |
7 | |
8 | /** |
9 | * A sense that has not yet been assigned an ID. |
10 | * Its gloss list starts out empty, but may later be populated. |
11 | * It may also be associated with a particular lexeme. |
12 | * |
13 | * @license GPL-2.0-or-later |
14 | */ |
15 | class BlankSense extends Sense { |
16 | |
17 | public function __construct() { |
18 | parent::__construct( |
19 | new NullSenseId(), |
20 | new TermList() |
21 | ); |
22 | } |
23 | |
24 | public function setId( $id ) { |
25 | parent::setId( new DummySenseId( $id->getSerialization() ) ); |
26 | } |
27 | |
28 | } |