ServerPanel   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 31
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
A execute() 0 4 1
1
<?php
2
3
4
namespace eXpansion\Bundle\Admin\ChatCommand;
5
6
use eXpansion\Bundle\Admin\Plugins\Gui\ScriptSettingsWindowFactory;
7
use eXpansion\Bundle\Admin\Plugins\Gui\ServerSettingsWindowFactory;
8
use eXpansion\Framework\AdminGroups\Helpers\AdminGroups;
9
use eXpansion\Framework\AdminGroups\Model\AbstractAdminChatCommand;
10
use Symfony\Component\Console\Input\InputInterface;
11
12
13
/**
14
 * Class Records
15
 *
16
 * @package eXpansion\Bundle\Admin\ChatCommand;
17
 * @author  reaby
18
 */
19
class ServerPanel extends AbstractAdminChatCommand
20
{
21
    /** @var ServerSettingsWindowFactory*/
22
    protected $serverSettingsWindowFactory;
23
24
    /**
25
     * ScriptPanel constructor.
26
     *
27
     * @param                      $command
28
     * @param                      $permission
29
     * @param array $aliases
30
     */
31
    public function __construct(
32
        $command,
33
        $permission,
34
        array $aliases = [],
35
        ServerSettingsWindowFactory $serverSettingsWindowFactory,
36
        AdminGroups $adminGroups
37
    ) {
38
        parent::__construct($command, $permission, $aliases, $adminGroups);
39
        $this->serverSettingsWindowFactory = $serverSettingsWindowFactory;
40
    }
41
42
    /**
43
     * @inheritdoc
44
     */
45
    public function execute($login, InputInterface $input)
46
    {
47
        $this->serverSettingsWindowFactory->create($login);
48
    }
49
}
50