Completed
Push — master ( d466fc...57558f )
by Pavel
03:56
created

TypeException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A unknown() 0 4 1
A cannotRedeclare() 0 4 1
1
<?php
2
3
namespace Bankiru\Api\Doctrine\Exception;
4
5
class TypeException extends \LogicException implements DoctrineApiException
6
{
7
    public static function cannotRedeclare($type)
8
    {
9
        return new self(sprintf('Cannot redeclare type "%s"', $type));
10
    }
11
12
    public static function unknown($type)
13
    {
14
        return new self(sprintf('Unknown type "%s"', $type));
15
    }
16
}
17