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

AuthException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1
Metric Value
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 9.4286
cc 1
eloc 5
nc 1
nop 3
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