Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
CRAP | |
100.00% |
1 / 1 |
NullFormId | |
100.00% |
5 / 5 |
|
100.00% |
5 / 5 |
5 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getLexemeId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
__serialize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
__unserialize | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
equals | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace Wikibase\Lexeme\Domain\DummyObjects; |
4 | |
5 | use LogicException; |
6 | use Wikibase\Lexeme\Domain\Model\FormId; |
7 | |
8 | /** |
9 | * @license GPL-2.0-or-later |
10 | * @phan-file-suppress PhanPluginNeverReturnMethod |
11 | */ |
12 | class NullFormId extends FormId { |
13 | |
14 | public function __construct() { |
15 | $this->serialization = ''; |
16 | } |
17 | |
18 | public function getLexemeId() { |
19 | throw new LogicException( 'Shall never be called' ); |
20 | } |
21 | |
22 | public function __serialize(): array { |
23 | throw new LogicException( 'Shall never be called' ); |
24 | } |
25 | |
26 | public function __unserialize( array $data ): void { |
27 | throw new LogicException( 'Shall never be called' ); |
28 | } |
29 | |
30 | public function equals( $target ) { |
31 | return true; |
32 | } |
33 | |
34 | } |