Failed Conditions
Pull Request — develop (#3525)
by Jonathan
09:58
created

MissingSQLParam   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A new() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL\Exception;
6
7
use Doctrine\DBAL\SQLParserUtilsException;
8
use function sprintf;
9
10
final class MissingSQLParam extends SQLParserUtilsException
11
{
12 137
    public static function new(string $paramName) : self
13
    {
14 137
        return new self(
15 137
            sprintf('Value for :%1$s not found in params array. Params array key should be "%1$s"', $paramName)
16
        );
17
    }
18
}
19