Completed
Push — master ( d56647...5f1d83 )
by Kirill
11s
created

StandartSlackRoom::driver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 2
b 0
f 1
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
/**
3
 * This file is part of GitterBot package.
4
 *
5
 * @author butschster <[email protected]>
6
 * @date   20.07.2016 15:27
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Interfaces\Slack;
13
14
use Domains\Room\AbstractRoom;
15
16
class StandartSlackRoom extends AbstractRoom
17
{
18
    /**
19
     * AbstractRoom constructor.
20
     *
21
     * @param string $id
22
     * @param string|array $groups
23
     * @param array  $middleware
24
     */
25 View Code Duplication
    public function __construct($id, $groups = '*', array $middleware = [])
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
26
    {
27
        parent::__construct();
28
29
        $this->id = $id;
30
        $this->alias = $id;
31
        $this->groups = (array) $groups;
32
33
        $this->setMiddleware($middleware);
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function driver()
40
    {
41
        return 'slack';
42
    }
43
}