UnsupportedValueType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A new() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ClickHouseDB\Exception;
6
7
use InvalidArgumentException;
8
use function gettype;
0 ignored issues
show
introduced by
Expected 1 lines between different types of use statement, found 0.
Loading history...
9
use function sprintf;
10
11
final class UnsupportedValueType extends InvalidArgumentException implements ClickHouseException
12
{
13
    /**
14
     * @param mixed $parameter
15
     */
16 1
    public static function new($parameter) : self
0 ignored issues
show
introduced by
There must be no whitespace between closing parenthesis and return type colon.
Loading history...
17
    {
18 1
        return new self(sprintf('Parameter of type "%s" cannot be bound', gettype($parameter)));
19
    }
20
}
21