Completed
Push — master ( a47a63...7aba9f )
by Nikola
9s
created

InvalidConstraintException::forOperator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
/**
4
 * This file is part of the Version package.
5
 *
6
 * Copyright (c) Nikola Posa <[email protected]>
7
 *
8
 * For full copyright and license information, please refer to the LICENSE file,
9
 * located at the package root folder.
10
 */
11
12
namespace Version\Exception;
13
14
use DomainException;
15
16
/**
17
 * @author Nikola Posa <[email protected]>
18
 */
19
class InvalidConstraintException extends DomainException implements Exception
20
{
21 1
    public static function forOperator($operator)
22
    {
23 1
        return new self(sprintf('Unsupported operator: %s', $operator));
24
    }
25
}
26