Passed
Push — master ( b091a1...a43e6f )
by Pavel
03:13
created

RequestTransformation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getOriginalCall() 0 4 1
A getTransformedCall() 0 4 1
1
<?php
2
3
namespace ScayTrase\Api\JsonRpc;
4
5
use ScayTrase\Api\Rpc\RpcRequestInterface;
6
7
/** @internal */
8
final class RequestTransformation
9
{
10
    /** @var  RpcRequestInterface */
11
    private $originalCall;
12
13
    /** @var  JsonRpcRequestInterface */
14
    private $transformedCall;
15
16
    /**
17
     * RequestTransformation constructor.
18
     * @param RpcRequestInterface $originalCall
19
     * @param JsonRpcRequestInterface $transformedCall
20
     */
21 17
    public function __construct(RpcRequestInterface $originalCall, JsonRpcRequestInterface $transformedCall)
22
    {
23 17
        $this->originalCall = $originalCall;
24 17
        $this->transformedCall = $transformedCall;
25 17
    }
26
27
    /**
28
     * @return RpcRequestInterface
29
     */
30 5
    public function getOriginalCall()
31
    {
32 5
        return $this->originalCall;
33
    }
34
35
    /**
36
     * @return JsonRpcRequestInterface
37
     */
38 5
    public function getTransformedCall()
39
    {
40 5
        return $this->transformedCall;
41
    }
42
}
43