expressionTypeDoesNotExist()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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