Registration   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\RegistrationInterface;
15
use Tidal\WampWatch\Model\Contract\SessionInterface;
16
use Tidal\WampWatch\Model\Contract\ProcedureInterface;
17
use Tidal\WampWatch\Model\Property\Scalar\HasIdTrait;
18
use Tidal\WampWatch\Model\Property\Object\HasSessionTrait;
19
use Tidal\WampWatch\Model\Property\Object\HasProcedureTrait;
20
21
class Registration implements RegistrationInterface
22
{
23
    use HasIdTrait;
24
    use HasSessionTrait;
25
    use HasProcedureTrait;
26
27
    public function __construct($id, SessionInterface $session, ProcedureInterface $procedure)
28
    {
29
        $this->setId($id);
30
        $this->setSession($session);
31
        $this->setProcedure($procedure);
32
    }
33
}
34