Completed
Pull Request — master (#4)
by Pavel
10:02
created

TestClient::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Bankiru\Api\Tests;
4
5
use ScayTrase\Api\Rpc\RpcClientInterface;
6
7
final class TestClient implements RpcClientInterface
8
{
9
    /** @var RpcClientInterface */
10
    private $delegate;
11
12
    /**
13
     * TestClient constructor.
14
     *
15
     * @param RpcClientInterface $delegate
16
     */
17 4
    public function __construct(RpcClientInterface $delegate)
18
    {
19 4
        $this->delegate = $delegate;
20 4
    }
21
22
    /** {@inheritdoc} */
23 1
    public function invoke($calls)
24
    {
25 1
        return $this->delegate->invoke($calls);
26
    }
27
}
28