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

CitationFrequencyValue   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 17
ccs 0
cts 9
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getPropertyDataItems() 0 6 1
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