Completed
Push — master ( 5c5c17...5ce8bd )
by mw
02:50
created

NullPropertyAnnotator::addAnnotation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 1
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SESP\PropertyAnnotators;
4
5
use SMW\DIProperty;
6
use SMW\SemanticData;
7
use SESP\PropertyAnnotator;
8
9
/**
10
 * @private
11
 * @ingroup SESP
12
 *
13
 * @license GNU GPL v2+
14
 * @since 2.0
15
 *
16
 * @author mwjames
17
 */
18
class NullPropertyAnnotator implements PropertyAnnotator {
19
20
	/**
21
	 * @since 2.0
22
	 *
23
	 * {@inheritDoc}
24
	 */
25 1
	public function isAnnotatorFor( DIProperty $property ) {
26 1
		return true;
27
	}
28
29
	/**
30
	 * @since 2.0
31
	 *
32
	 * {@inheritDoc}
33
	 */
34
	public function addAnnotation( DIProperty $property, SemanticData $semanticData ) {}
35
36
}
37