Completed
Pull Request — master (#51)
by De Cramer
02:45
created

Help   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 16
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\Framework\Core\ChatCommand;
4
5
use eXpansion\Framework\Core\Model\ChatCommand\AbstractChatCommand;
6
use eXpansion\Framework\Core\Plugins\Gui\WindowHelpFactory;
7
use Symfony\Component\Console\Input\InputInterface;
8
9
10
/**
11
 * Class Help
12
 *
13
 * @package eXpansion\Framework\Core\ChatCommand;
14
 * @author  oliver de Cramer <[email protected]>
15
 */
16
class Help extends AbstractChatCommand
17
{
18
    protected $windowHelpFactory;
19
20
    public function __construct($command, array $aliases = [], WindowHelpFactory $windowHelpFactory)
21
    {
22
        parent::__construct($command, $aliases);
23
24
        $this->windowHelpFactory = $windowHelpFactory;
25
    }
26
27
    public function execute($login, InputInterface $input)
28
    {
29
        $this->windowHelpFactory->create($login);
30
    }
31
}