ServerErrorException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 15
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Parroauth2\Client\Exception;
4
5
/**
6
 * Class ServerErrorException
7
 */
8
class ServerErrorException extends OAuthServerException
9
{
10
    public const ERROR_TYPE = 'server_error';
11
12
    /**
13
     * ServerErrorException constructor.
14
     *
15
     * @param string $message
16
     * @param string|null $hint
17
     * @param \Exception|null $previous
18
     * @param int $code
19
     */
20 1
    public function __construct($message, $hint = null, \Exception $previous = null, $code = 0)
21
    {
22 1
        parent::__construct(500, self::ERROR_TYPE, $message, $hint, $previous, $code);
23 1
    }
24
}
25