NotFoundException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A anime() 0 4 1
A page() 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\WorldArtBrowserBundle\Exception;
12
13
class NotFoundException extends ErrorException
14
{
15
    /**
16
     * @param string $id
17
     *
18
     * @return NotFoundException
19
     */
20 2
    public static function anime($id)
21
    {
22 2
        return new self(sprintf('Anime with id "%s" not found.', $id));
23
    }
24
25
    /**
26
     * @return NotFoundException
27
     */
28 1
    public static function page()
29
    {
30 1
        return new self('Page not found.');
31
    }
32
}
33