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

TestClient   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A invoke() 0 4 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