AppWebsocket::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 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