Completed
Push — master ( 0512a1...7c8694 )
by Tomáš
03:46
created

UnauthorizedException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 14
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1
rs 10
ccs 3
cts 3
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Inspirum\Balikobot\Exceptions;
4
5
use Throwable;
6
7
class UnauthorizedException extends AbstractException
8
{
9
    /**
10
     * UnauthorizedException constructor
11
     *
12
     * @param string|null     $message
13
     * @param int             $statusCode
14
     * @param \Throwable|null $previous
15
     */
16 2
    public function __construct(string $message = null, int $statusCode = 401, Throwable $previous = null)
17
    {
18 2
        parent::__construct([], $statusCode, $previous, $message);
19 2
    }
20
}
21