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

TypeException::unknown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
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