TopicRoute   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
namespace Eole\Sandstone\Websocket\Routing;
4
5
use Silex\Route;
6
7
class TopicRoute extends Route
8
{
9
    /**
10
     * @param string $topicPath
11
     * @param callable $topicFactory
12
     * @param array $defaults
13
     * @param array $requirements
14
     */
15
    public function __construct(
16
        $topicPath,
17
        callable $topicFactory,
18
        array $defaults = array(),
19
        array $requirements = array()
20
    ) {
21
        $defaults['_topic_factory'] = $topicFactory;
22
23
        parent::__construct($topicPath, $defaults, $requirements);
24
    }
25
}
26