Completed
Pull Request — master (#1)
by Woody
16:22
created

AuthException::getStatusCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace Equip\Auth\Exception;
3
4
/**
5
 * Parent class for authentication-related exceptions.
6
 */
7
class AuthException extends \Exception
8
{
9 10
    public function __construct(
10
        $message = 'There was an error authenticating',
11
        $code = 0,
12
        \Exception $previous = null
13
    ) {
14 10
        parent::__construct($message, $code, $previous);
15 10
    }
16
17 1
    public function getStatusCode()
18
    {
19 1
        return 500;
20
    }
21
}
22