TypeException::typeNotFound()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Doctrine\ODM\CouchDB\Types;
4
5
class TypeException extends \Doctrine\ODM\CouchDB\CouchDBException
6
{
7
    static public function unknownType($name)
8
    {
9
        return new self("Using an unknown type '" . $name . "'.");
10
    }
11
12
    static public function typeExists($name)
13
    {
14
        return new self("Cannot add type with name '" . $name . "', it already exists.");
15
    }
16
17
    static public function typeNotFound($name)
18
    {
19
        return new self("Cannot overwrite '" . $name ."', because it is not a known type yet.");
20
    }
21
}
22