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