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

TraceableNetwork::addInitial()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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