Completed
Push — master ( 26e625...88c602 )
by Timo
02:58
created

Realm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 6

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the Tidal/WampWatch package.
5
 *   (c) 2016 Timo Michna <timomichna/yahoo.de>
6
 *
7
 *  For the full copyright and license information, please view the LICENSE
8
 *  file that was distributed with this source code.
9
 *
10
 */
11
12
namespace Tidal\WampWatch\Model;
13
14
use Tidal\WampWatch\Model\Property\Scalar\HasNameTrait;
15
use Tidal\WampWatch\Model\Property\Collection\HasTopicsTrait;
16
use Tidal\WampWatch\Model\Property\Collection\HasProceduresTrait;
17
use Tidal\WampWatch\Model\Property\Object\HasRouterTrait;
18
use Tidal\WampWatch\Model\Behavior\Property\HasCollectionsTrait;
19
use Tidal\WampWatch\Model\Property\ObjectCollection;
20
21
class Realm implements Contract\RealmInterface
22
{
23
    use HasCollectionsTrait;
24
    use HasNameTrait;
25
    use HasTopicsTrait;
26
    use HasProceduresTrait;
27
    use HasRouterTrait;
28
29
    public function __construct($name, Contract\RouterInterface $router)
30
    {
31
        $this->setName($name);
32
        $this->setRouter($router);
33
        $this->setProcedures(new ObjectCollection());
34
        $this->setTopics(new ObjectCollection());
35
    }
36
}
37