Completed
Push — master ( 0b8c1e...75226e )
by Sergii
05:34
created

Router::group()   A

Complexity

Conditions 4
Paths 8

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 20

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
ccs 0
cts 9
cp 0
rs 9.2
cc 4
eloc 7
nc 8
nop 2
crap 20
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: conci
5
 * Date: 10/25/17
6
 * Time: 11:56 AM
7
 */
8
9
namespace sonrac\WAMP\Routers;
10
11
use sonrac\WAMP\Contracts\WAMPRouterInterface;
12
13
/**
14
 * Class Router
15
 *
16
 * @package sonrac\WAMP\Routers
17
 */
18
class Router extends BaseRouter implements WAMPRouterInterface
0 ignored issues
show
Bug introduced by
The type sonrac\WAMP\Routers\BaseRouter was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
{
20
    /**
21
     * RPC router
22
     *
23
     * @var \sonrac\WAMP\Contracts\RPCRouterInterface
24
     */
25
    protected $rpcRouter;
26
27
    /**
28
     * Publisher/subscription router
29
     *
30
     * @var \sonrac\WAMP\Contracts\PubSubRouterInterface
31
     */
32
    protected $pubSubRouter;
33
34
    /**
35
     * @inheritDoc
36
     */
37
    public function __construct(
38
        \sonrac\WAMP\Contracts\RPCRouterInterface $RPCRouter,
39
        \sonrac\WAMP\Contracts\PubSubRouterInterface $pubSubRouter
40
    ) {
41
        $this->rpcRouter = $RPCRouter;
42
        $this->pubSubRouter = $pubSubRouter;
43
    }
44
45
    /**
46
     * @inheritDoc
47
     */
48
    public function dispatch()
49
    {
50
        // TODO: Implement dispatch() method.
51
    }
52
53
}
54