requestSendButNotResponded()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
ccs 0
cts 7
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 2
1
<?php
2
3
namespace ScayTrase\Api\JsonRpc\Exception;
4
5
use ScayTrase\Api\JsonRpc\JsonRpcRequestInterface;
6
7
class JsonRpcProtocolException extends \LogicException implements JsonRpcExceptionInterface
8
{
9
    /**
10
     * @param JsonRpcRequestInterface $request
11
     * @return static
12
     */
13
    public static function requestSendButNotResponded(JsonRpcRequestInterface $request)
14
    {
15
        return new static(sprintf(
16
            'Request with id "%s" was sent to endpoint, but output does not contain response for this request',
17
            $request->getId()
18
        ));
19
    }
20
}
21