NoResponseReceivedException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
/*
3
 * This file is part of JSON RPC Client.
4
 *
5
 * (c) Igor Lazarev <[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 Strider2038\JsonRpcClient\Exception;
12
13
use Strider2038\JsonRpcClient\Request\RequestObjectInterface;
14
15
/**
16
 * @author Igor Lazarev <[email protected]>
17
 */
18
class NoResponseReceivedException extends \Exception implements JsonRpcClientExceptionInterface
19
{
20 1
    public function __construct(RequestObjectInterface $request)
21
    {
22 1
        parent::__construct(
23 1
            sprintf(
24 1
                'Request object "%s" has no response from server in batch request.',
25 1
                json_encode($request)
26
            )
27
        );
28 1
    }
29
}
30