ServerInfo   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
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 28
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A execute() 0 4 1
1
<?php
2
3
namespace eXpansion\Bundle\ServerInformation\ChatCommand;
4
5
use eXpansion\Bundle\ServerInformation\Plugins\Gui\ServerInfoWindow;
6
use eXpansion\Framework\Core\Model\ChatCommand\AbstractChatCommand;
7
use Symfony\Component\Console\Input\InputInterface;
8
9
class ServerInfo extends AbstractChatCommand
10
{
11
    /** @var ServerInfoWindow */
12
    protected $serverInformationWindow;
13
14
    /**
15
     * @inheritdoc
16
     */
17
    public function __construct(ServerInfoWindow $serverInformationWindow, $command, array $aliases = [])
18
    {
19
        parent::__construct($command, $aliases);
20
21
        $this->serverInformationWindow = $serverInformationWindow;
22
    }
23
24
    /**
25
     * Method called to execute the chat command.
26
     *
27
     * @param string $login
28
     * @param InputInterface $input
29
     *
30
     * @return mixed
31
     */
32
    public function execute($login, InputInterface $input)
33
    {
34
        $this->serverInformationWindow->create($login);
35
    }
36
}
37