Completed
Pull Request — master (#129)
by
unknown
03:00
created

ChatCommandPlugin::getChatCommands()   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 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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
}