UnsupportedResponseTypeException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace kalanis\OAuth2\Exceptions;
4
5
6
use Exception;
7
8
9
/**
10
 * UnsupportedResponseTypeException
11
 * @package kalanis\OAuth2\Exceptions
12
 */
13
class UnsupportedResponseTypeException extends OAuthException
14
{
15
16
    protected string $key = 'unsupported_response_type';
17
18
19
    /**
20
     * @param string $message
21
     * @param Exception|null $previous
22
     */
23
    public function __construct($message = 'Grant type not supported', Exception $previous = null)
24
    {
25
        parent::__construct($message, 400, $previous);
26
    }
27
}
28