Passed
Push — master ( 992e52...dc2c5c )
by Georgi
03:52
created

UsersOnlineUserSettings   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A icon() 0 3 1
A label() 0 3 1
A elements() 0 9 1
A group() 0 3 1
1
<?php 
2
3
namespace Epesi\Base\Dashboard\Integration;
4
5
use Epesi\Core\System\User\Settings\Integration\Joints\UserSettingsJoint;
6
use Epesi\Core\System\User\Online\OnlineCore;
7
8
class UsersOnlineUserSettings extends UserSettingsJoint
9
{
10
	public function group()
11
	{
12
		return OnlineCore::alias();
13
	}
14
	
15
	public function label()
16
	{
17
		return __('Misc');
18
	}
19
20
	public function icon()
21
	{
22
		return 'list';
23
	}
24
25
	public function elements() {
26
		return [
27
				[
28
						'name' => 'show_me',
29
						'decorator' => [
30
								'Checkbox',
31
								'caption' => __('Show me in online users'),
32
						],
33
						'default' => 1,						
34
				],
35
		];
36
	}
37
}