GM::nameAnnounce()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php namespace FreedomCore\TrinityCore\Console\Commands;
2
3
use FreedomCore\TrinityCore\Console\Abstracts\BaseCommand;
4
5
/**
6
 * Class GM
7
 * @package FreedomCore\TrinityCore\Console\Commands
8
 * @codeCoverageIgnore
9
 */
10
class GM extends BaseCommand
11
{
12
13
    /**
14
     * @inheritdoc
15
     * @var array
16
     */
17
    protected $concatenate = [
18
        'announce',
19
        'nameAnnounce',
20
        'notify'
21
    ];
22
23
    /**
24
     * Send announcement to all Game Masters
25
     * @param string $announcement
26
     * @return array|string
27
     */
28
    public function announce(string $announcement)
29
    {
30
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
31
    }
32
33
    /**
34
     * Send announcement to all Game Masters (as console)
35
     * @param string $announcement
36
     * @return array|string
37
     */
38
    public function nameAnnounce(string $announcement)
39
    {
40
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
41
    }
42
43
    /**
44
     * Send notification ot all Game Masters
45
     * @param string $notification
46
     * @return array|string
47
     */
48
    public function notify(string $notification)
49
    {
50
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
51
    }
52
}
53