Completed
Pull Request — master (#22)
by mw
03:56
created

CitationFrequencyValue::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace SCI\DataValues;
4
5
use SMWRecordValue as RecordValue;
6
use SMW\DIProperty;
7
use SCI\PropertyRegistry;
8
9
/**
10
 * @license GNU GPL v2+
11
 * @since 1.1
12
 *
13
 * @author mwjames
14
 */
15
class CitationFrequencyValue extends RecordValue {
16
17
	/**
18
	 * @param string $typeid
19
	 */
20
	public function __construct( $typeid = '' ) {
21
		parent::__construct( '_sci_rec' );
22
	}
23
24
	public function getPropertyDataItems() {
25
		return array(
26
			new DIProperty( PropertyRegistry::SCI_CITE_KEY ),
27
			new DIProperty( PropertyRegistry::SCI_CITE_COUNT )
28
		);
29
	}
30
31
}
32