Subscription   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 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\Contract\SessionInterface;
15
use Tidal\WampWatch\Model\Contract\TopicInterface;
16
use Tidal\WampWatch\Model\Property\Scalar\HasIdTrait;
17
use Tidal\WampWatch\Model\Property\Object\HasSessionTrait;
18
use Tidal\WampWatch\Model\Property\Object\HasTopicTrait;
19
20
class Subscription implements Contract\SubscriptionInterface
21
{
22
    use HasIdTrait;
23
    use HasSessionTrait;
24
    use HasTopicTrait;
25
26
    public function __construct($id, SessionInterface $session, TopicInterface $topic)
27
    {
28
        $this->setId($id);
29
        $this->setSession($session);
30
        $this->setTopic($topic);
31
    }
32
}
33