ODDRelationship   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getTagName() 0 3 1
1
<?php
2
/**
3
 * ODD Relationship class.
4
 *
5
 * @package    Elgg
6
 * @subpackage Core
7
 * @deprecated 1.9
8
 */
9
class ODDRelationship extends ODD {
0 ignored issues
show
Deprecated Code introduced by
The class ODD has been deprecated with message: 1.9

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
10
11
	/**
12
	 * New ODD Relationship
13
	 *
14
	 * @param string $uuid1 First UUID
15
	 * @param string $type  Type of telationship
16
	 * @param string $uuid2 Second UUId
17
	 */
18
	function __construct($uuid1, $type, $uuid2) {
19
		parent::__construct();
20
21
		$this->setAttribute('uuid1', $uuid1);
22
		$this->setAttribute('type', $type);
23
		$this->setAttribute('uuid2', $uuid2);
24
	}
25
26
	/**
27
	 * Returns 'relationship'
28
	 *
29
	 * @return string 'relationship'
30
	 */
31
	protected function getTagName() {
32
		return "relationship";
33
	}
34
}
35