UnsupportedValueType::new()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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