ErrorException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A wrap() 0 3 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\MyAnimeListBrowserBundle\Exception;
12
13
class ErrorException extends \RuntimeException
14
{
15
    /**
16
     * @param \Exception $e
17
     *
18
     * @return ErrorException
19
     */
20 4
    public static function wrap(\Exception $e)
21
    {
22 4
        return new self($e->getMessage(), $e->getCode(), $e);
23
    }
24
}
25