InvalidHistoryFactoryException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A invalidIdentifier() 0 3 1
1
<?php
2
3
/**
4
 * Static Analysis Results Baseliner (sarb).
5
 *
6
 * (c) Dave Liddament
7
 *
8
 * For the full copyright and licence information please view the LICENSE file distributed with this source code.
9
 */
10
11
declare(strict_types=1);
12
13
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Domain\HistoryAnalyser;
14
15
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common\SarbException;
16
17
/**
18
 * Thrown if invalid name of HistoryAnalyser is supplied.
19
 */
20
final class InvalidHistoryFactoryException extends SarbException
21
{
22
    public static function invalidIdentifier(string $name): self
23
    {
24
        return new self("Invalid identifier [$name]");
25
    }
26
}
27