app/Interfaces/Gitter/StandartGitterRoom.php 1 location
|
@@ 25-33 (lines=9) @@
|
22 |
|
* @param string|array $groups |
23 |
|
* @param array $middleware |
24 |
|
*/ |
25 |
|
public function __construct($alias, $groups = '*', array $middleware = []) |
26 |
|
{ |
27 |
|
parent::__construct(); |
28 |
|
|
29 |
|
$this->alias = $alias; |
30 |
|
$this->groups = (array) $groups; |
31 |
|
|
32 |
|
$this->setMiddleware($middleware); |
33 |
|
} |
34 |
|
|
35 |
|
public function listen() |
36 |
|
{ |
app/Interfaces/Slack/StandartSlackRoom.php 1 location
|
@@ 25-34 (lines=10) @@
|
22 |
|
* @param string|array $groups |
23 |
|
* @param array $middleware |
24 |
|
*/ |
25 |
|
public function __construct($id, $groups = '*', array $middleware = []) |
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 |