Completed
Pull Request — master (#106)
by De Cramer
13:31
created

ChatCommandPlugin   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 24
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getChatCommands() 0 4 1
1
<?php
2
3
namespace eXpansion\Framework\Core\Model\ChatCommand;
4
5
6
/**
7
 * Class AbstractChatCommandPlugin
8
 *
9
 * @package eXpansion\Framework\Core\Model\ChatCommand;
10
 * @author oliver de Cramer <[email protected]>
11
 */
12
class ChatCommandPlugin implements \eXpansion\Framework\Core\DataProviders\Listener\ChatCommandInterface
13
{
14
15
    protected $chatCommands;
16
17
    /**
18
     * ChatCommands constructor.
19
     * @param $chatCommands
20
     */
21
    public function __construct(array $chatCommands)
22
    {
23
        $this->chatCommands = $chatCommands;
24
    }
25
26
    /**
27
     * Get list of chat commands available.
28
     *
29
     * @return \eXpansion\Framework\Core\Model\ChatCommand\ChatCommandInterface[]
30
     */
31
    public function getChatCommands()
32
    {
33
        return $this->chatCommands;
34
    }
35
}