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

Registration   A

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