LFG   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A queue() 0 4 1
A clean() 0 4 1
A options() 0 4 1
1
<?php namespace FreedomCore\TrinityCore\Console\Commands;
2
3
use FreedomCore\TrinityCore\Console\Abstracts\BaseCommand;
4
5
/**
6
 * Class LFG
7
 * @package FreedomCore\TrinityCore\Console\Commands
8
 * @codeCoverageIgnore
9
 */
10
class LFG extends BaseCommand
11
{
12
13
    /**
14
     * Show information about current LFG queues
15
     * @return array|string
16
     */
17
    public function queue()
18
    {
19
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
20
    }
21
22
    /**
23
     * Cleans current queue, only for DEBUG
24
     * @return array|string
25
     */
26
    public function clean()
27
    {
28
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
29
    }
30
31
    /**
32
     * Shows current LFG options.
33
     * IF value is set, updates existing value.
34
     * @param string $value
35
     * @return array|string
36
     */
37
    public function options($value = '')
38
    {
39
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
40
    }
41
}
42