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

InvalidConstraintException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A forOperator() 0 4 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