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

UsersOnlineUserSettings::group()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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
}