Completed
Pull Request — dev (#11)
by
unknown
05:12 queued 01:17
created

ResourceNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAssociatedStatusCode() 0 4 1
1
<?php
2
3
namespace Vectorface\SnappyRouter\Exception;
4
5
use \Exception;
6
7
use Vectorface\SnappyRouter\Response\AbstractResponse;
8
9
/**
10
 * An exception to be thrown to generate a "404" like response.
11
 * @copyright Copyright (c) 2014, VectorFace, Inc.
12
 * @author Dan Bruce <[email protected]>
13
 */
14
class ResourceNotFoundException extends Exception implements RouterExceptionInterface
15
{
16
    /**
17
     * Returns the associated status code with the exception.
18
     * @return int The associated status code.
19
     */
20 1
    public function getAssociatedStatusCode()
21
    {
22 1
        return AbstractResponse::RESPONSE_NOT_FOUND;
23
    }
24
}
25