QueryBuilderException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A orderByDirectionDoesNotExist() 0 4 1
A expressionTypeDoesNotExist() 0 4 1
1
<?php
2
namespace Bedd\Doctrine\Dbal;
3
4
/**
5
 * QueryBuilderException
6
 */
7
class QueryBuilderException extends \Exception
8
{
9
    /**
10
     * Exception if the ORDER BY direction does not exist
11
     *
12
     * @param string $direction
13
     * @return self
14
     */
15
    public static function orderByDirectionDoesNotExist($direction)
16
    {
17
        return new self('The ORDER BY direction "'.$direction.'" does not exist.');
18
    }
19
20
    /**
21
     * Exception if the ORDER BY direction does not exist
22
     *
23
     * @param string $expr_type
24
     * @return self
25
     */
26
    public static function expressionTypeDoesNotExist($expr_type)
27
    {
28
        return new self('The Expression-Type "'.$expr_type.'" does not exist.');
29
    }
30
}
31