NullEntityPrefetcher   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 20
ccs 0
cts 5
cp 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A purgeAll() 0 1 1
A purge() 0 1 1
A prefetch() 0 1 1
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