Completed
Push — master ( bdeb81...7f157d )
by Eugene
06:32
created

UnexpectedResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A outOfSync() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the Tarantool Client package.
5
 *
6
 * (c) Eugene Leonovich <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Tarantool\Client\Exception;
15
16
final class UnexpectedResponse extends \RuntimeException
17
{
18 4
    public static function outOfSync(int $expectedSync, int $actualSync) : self
19
    {
20 4
        return new self("Unexpected response received: expected sync #$expectedSync, got #$actualSync");
21
    }
22
}
23