NullEntityPrefetcher::purgeAll()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 1
ccs 0
cts 1
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Wikibase\DataModel\Services\Entity;
4
5
use Wikibase\DataModel\Entity\EntityId;
6
7
/**
8
 * No-op EntityPrefetcher
9
 *
10
 * @since 1.1
11
 *
12
 * @license GPL-2.0-or-later
13
 * @author Marius Hoch < [email protected] >
14
 *
15
 * @codeCoverageIgnore
16
 */
17
class NullEntityPrefetcher implements EntityPrefetcher {
18
19
	/**
20
	 * Prefetches data for a list of entity ids.
21
	 *
22
	 * @param EntityId[] $entityIds
23
	 */
24
	public function prefetch( array $entityIds ) {
25
	}
26
27
	/**
28
	 * Purges prefetched data about a given entity.
29
	 */
30
	public function purge( EntityId $entityId ) {
31
	}
32
33
	/**
34
	 * Purges all prefetched data.
35
	 */
36
	public function purgeAll() {
37
	}
38
39
}
40