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

Help::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 2
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
}