TypeException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 1
cbo 1
dl 0
loc 17
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A unknownType() 0 4 1
A typeExists() 0 4 1
A typeNotFound() 0 4 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