AppWebsocket   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
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\Tests\Integration\App;
4
5
class AppWebsocket extends App
6
{
7
    public function __construct(array $values = array())
8
    {
9
        parent::__construct($values);
10
11
        $this->topic('articles', function ($topicPattern, $arguments) {
12
            $channelName = $arguments['channel'];
13
14
            return new ArticleTopic($topicPattern, $channelName);
15
        });
16
    }
17
}
18