GuestListWindow::getDataSet()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
namespace eXpansion\Bundle\Players\Plugins\Gui;
4
5
/**
6
 * Class IgnoreListWindow
7
 *
8
 * @author    de Cramer Oliver<[email protected]>
9
 * @copyright 2018 Smile
10
 * @package eXpansion\Bundle\Players\Plugins\Gui
11
 */
12
class GuestListWindow extends AbstractListWindow
13
{
14
    /**
15
     * @inheritdoc
16
     */
17
    function getDataSet(): array
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
18
    {
19
        return $this->factory->getConnection()->getGuestList();
20
    }
21
22
    /**
23
     * @inheritdoc
24
     */
25
    function executeForPlayer($login)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
26
    {
27
        $this->factory->getConnection()->removeGuest($login);
28
    }
29
}