Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
| Nonserializable | |
0.00% |
0 / 4 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
| __serialize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| serialize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| __unserialize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| unserialize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | // @phan-file-suppress PhanPluginNeverReturnMethod |
| 6 | |
| 7 | namespace Wikibase\Lexeme\Domain\Diff; |
| 8 | |
| 9 | use LogicException; |
| 10 | |
| 11 | /** |
| 12 | * Private helper trait to make some diffs nonserializable. |
| 13 | * |
| 14 | * @license GPL-2.0-or-later |
| 15 | */ |
| 16 | trait Nonserializable { |
| 17 | |
| 18 | public function __serialize(): array { |
| 19 | throw new LogicException( "serialize() is not implemented" ); |
| 20 | } |
| 21 | |
| 22 | public function serialize() { |
| 23 | throw new LogicException( "serialize() is not implemented" ); |
| 24 | } |
| 25 | |
| 26 | public function __unserialize( $data ): void { |
| 27 | throw new LogicException( "serialize() is not implemented" ); |
| 28 | } |
| 29 | |
| 30 | /** @param mixed $serialized */ |
| 31 | public function unserialize( $serialized ) { |
| 32 | throw new LogicException( "unserialize() is not implemented" ); |
| 33 | } |
| 34 | |
| 35 | } |