Completed
Push — master ( e78c7b...3c463f )
by Jeroen
266:34 queued 210:43
created

ElggDiscussion::initializeAttributes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 3
cp 0
crap 2
1
<?php
2
3
/**
4
 * Discussion topic
5
 *
6
 * @property string $status The published status of the blog post (published, draft)
7
 */
8
class ElggDiscussion extends ElggObject {
9
10
	/**
11
	 * {@inheritDoc}
12
	 */
13
	protected function initializeAttributes() {
14
		parent::initializeAttributes();
15
16
		$this->attributes['subtype'] = "discussion";
17
	}
18
}
19