Completed
Push — master ( 6823cc...a3f6d1 )
by Peter
01:40
created

ErrorException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A error() 0 4 1
1
<?php
2
3
/**
4
 * AnimeDb package.
5
 *
6
 * @author    Peter Gribanov <[email protected]>
7
 * @copyright Copyright (c) 2011, Peter Gribanov
8
 * @license   http://opensource.org/licenses/GPL-3.0 GPL v3
9
 */
10
11
namespace AnimeDb\Bundle\AniDbBrowserBundle\Exception;
12
13
class ErrorException extends \RuntimeException
14
{
15
    /**
16
     * @param string $message
17
     *
18
     * @return ErrorException
19
     */
20 1
    public static function error($message)
21
    {
22 1
        return new self($message);
23
    }
24
}
25