Completed
Push — dev ( 845ef5...8eacd8 )
by
unknown
02:50
created

Help   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
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 27
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
 * Class Help
11
 *
12
 * @package eXpansion\Framework\Core\ChatCommand;
13
 * @author  oliver de Cramer <[email protected]>
14
 */
15
class Help extends AbstractChatCommand
16
{
17
    /** @var WindowHelpFactory  */
18
    protected $windowHelpFactory;
19
20
    /**
21
     * Help constructor.
22
     *
23
     * @param                   $command
24
     * @param array             $aliases
25
     * @param WindowHelpFactory $windowHelpFactory
26
     */
27
    public function __construct($command, array $aliases = [], WindowHelpFactory $windowHelpFactory)
28
    {
29
        parent::__construct($command, $aliases);
30
31
        $this->windowHelpFactory = $windowHelpFactory;
32
    }
33
34
    /**
35
     * @inheritdoc
36
     */
37
    public function execute($login, InputInterface $input)
38
    {
39
        $this->windowHelpFactory->create($login);
40
    }
41
}