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

Registration::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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