Passed
Push — master ( bbc85b...f0bc06 )
by
04:59
created

TooManyRequestsException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ely\Mojang\Exception;
5
6
use GuzzleHttp\Exception\ClientException;
7
use Psr\Http\Message\RequestInterface;
8
use Psr\Http\Message\ResponseInterface;
9
10
class TooManyRequestsException extends ClientException implements MojangApiException {
11
12 1
    public function __construct(RequestInterface $request, ResponseInterface $response) {
13 1
        parent::__construct(
14
            'The request limit was exceeded. ' .
15 1
            'Read the documentation for the method requested to find out which RPS is allowed.',
16 1
            $request,
17 1
            $response
18
        );
19 1
    }
20
21
}
22