ODDEntity   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
/**
4
 * ODD Entity class.
5
 *
6
 * @package    Elgg.Core
7
 * @subpackage ODD
8
 * @deprecated 1.9
9
 */
10
class ODDEntity 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...
11
12
	/**
13
	 * New ODD Entity
14
	 *
15
	 * @param string $uuid     A universally unique ID
16
	 * @param string $class    Class
17
	 * @param string $subclass Subclass
18
	 */
19
	function __construct($uuid, $class, $subclass = "") {
20
		parent::__construct();
21
22
		$this->setAttribute('uuid', $uuid);
23
		$this->setAttribute('class', $class);
24
		$this->setAttribute('subclass', $subclass);
25
	}
26
27
	/**
28
	 * Returns entity.
29
	 *
30
	 * @return 'entity'
0 ignored issues
show
Documentation introduced by
The doc-type 'entity' could not be parsed: Unknown type name "'entity'" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
31
	 */
32
	protected function getTagName() {
33
		return "entity";
34
	}
35
}
36