AbstractRateLimitException::setClientException()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace LoLApi\Exception;
4
5
use GuzzleHttp\Exception\ClientException;
6
7
/**
8
 * Class RateLimitException
9
 *
10
 * @package LoLApi\Exception
11
 */
12
abstract class AbstractRateLimitException extends \Exception
13
{
14
    /** @var string */
15
    protected $retryAfter;
16
17
    /** @var ClientException */
18
    protected $clientException;
19
20
    /**
21
     * @return string
22
     */
23 1
    public function getRetryAfter()
24
    {
25 1
        return $this->retryAfter;
26
    }
27
28
    /**
29
     * @param string $retryAfter
30
     *
31
     * @return $this
32
     */
33 1
    public function setRetryAfter($retryAfter)
34
    {
35 1
        $this->retryAfter = $retryAfter;
36
37 1
        return $this;
38
    }
39
40
    /**
41
     * @return ClientException
42
     */
43 1
    public function getClientException()
44
    {
45 1
        return $this->clientException;
46
    }
47
48
    /**
49
     * @param ClientException $clientException
50
     *
51
     * @return $this
52
     */
53 1
    public function setClientException(ClientException $clientException)
54
    {
55 1
        $this->clientException = $clientException;
56
57 1
        return $this;
58
    }
59
}
60