Completed
Pull Request — dev (#11)
by
unknown
04:51
created

AccessDeniedException   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 1
Metric Value
wmc 1
c 1
b 0
f 1
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
use Vectorface\SnappyRouter\Response\AbstractResponse;
7
8
/**
9
 * An exception indicated access has been denied to the resource.
10
 * @copyright Copyright (c) 2014, VectorFace, Inc.
11
 * @author Dan Bruce <[email protected]>
12
 */
13
class AccessDeniedException extends Exception implements RouterExceptionInterface
14
{
15
    /**
16
     * Returns the associated status code with the exception.
17
     * @return int The associated status code.
18
     */
19 2
    public function getAssociatedStatusCode()
20
    {
21 2
        return AbstractResponse::RESPONSE_FORBIDDEN;
22
    }
23
}
24