UnauthorizedHttpException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Linio\Exception;
6
7
use Psr\Log\LogLevel;
8
9
class UnauthorizedHttpException extends HttpException
10
{
11
    /**
12
     * @param string $message  Error message
13
     * @param int    $code     Internal code for the application error
14
     * @param string $logLevel Log level of the error, from Psr\Log\LogLevel
15
     */
16
    public function __construct(string $message, int $code = 0, string $logLevel = LogLevel::WARNING)
17
    {
18
        parent::__construct($message, 401, $code, $logLevel);
19
    }
20
}
21