ODDRelationship::getTagName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
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