Completed
Push — master ( e1eba3...584ae4 )
by Marc
02:55
created

TraceableNetwork   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 16
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A addInitial() 0 6 1
1
<?php
2
/*
3
 * This file is part of the phpflo/phpflo-flowtrace package.
4
 *
5
 * (c) Marc Aschmann <[email protected]>
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
namespace PhpFlo;
12
13
use PhpFlo\Common\AbstractNetworkAdapter;
14
use PhpFlo\Common\NetworkAdapterinterface;
15
use PhpFlo\Common\NetworkInterface;
16
use PhpFlo\Exception\InvalidDefinitionException;
17
18
/**
19
 * Network for tracing events.
20
 *
21
 * @package PhpFlo
22
 * @author Marc Aschmann <[email protected]>
23
 */
24
class TraceableNetwork extends AbstractNetworkAdapter implements NetworkAdapterinterface, NetworkInterface
25
{
26
    /**
27
     * @param mixed $data
28
     * @param string $node
29
     * @param string $port
30
     * @return $this
31
     * @throws InvalidDefinitionException
32
     */
33 1
    public function addInitial($data, $node, $port)
34
    {
35 1
        $this->network->addInitial($data, $node, $port);
36
37 1
        return $this;
38
    }
39
}
40