Passed
Push — master ( b0218f...428611 )
by Amelia
03:48
created

RateLimitException::response()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Amelia\Monzo\Exceptions;
4
5
class RateLimitException extends MonzoException
6
{
7
    /**
8
     * Our request limit.
9
     *
10
     * @var int
11
     */
12
    public $limit;
13
14
    /**
15
     * The number of requests remaining.
16
     *
17
     * @var int
18
     */
19
    public $remaining;
20
21
    /**
22
     * The number of seconds to wait before retrying.
23
     *
24
     * @var int
25
     */
26
    public $retryAfter;
27
28
    /**
29
     * Status code for this error.
30
     *
31
     * @var int
32
     */
33
    protected static $status = 404;
34
35
    /**
36
     * Status message for this error.
37
     *
38
     * @var string
39
     */
40
    protected static $statusMessage = 'Rate limit for the monzo API reached, backing off. See https://monzo.com/docs';
41
}
42