Passed
Push — 3.x ( 07307c...e8e622 )
by Jeroen
100:54
created

ElggAdminNotice   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initializeAttributes() 0 6 1
1
<?php
2
/**
3
 * Admin Notice
4
 */
5
class ElggAdminNotice extends \ElggObject {
6
7
	/**
8
	 * {@inheritdoc}
9
	 */
10 4
	protected function initializeAttributes() {
11 4
		parent::initializeAttributes();
12
13 4
		$this->attributes['subtype'] = 'admin_notice';
14
		// admins can see ACCESS_PRIVATE but no one else can.
15 4
		$this->attributes['access_id'] = ACCESS_PRIVATE;
16 4
	}
17
}
18