GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

RetryLogicException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Gousto\Replay;
4
5
use Exception;
6
7
/**
8
 * Class RetryLogicException
9
 *
10
 * @package Gousto\Replay
11
 */
12
class RetryLogicException extends Exception
13
{
14
    /**
15
     * @var Exception
16
     */
17
    protected $original_error;
18
19
    /**
20
     * @var Replay
21
     */
22
    protected $replay;
23
24
    /**
25
     * RetryLogicException constructor.
26
     *
27
     * @param Replay    $replay
28
     * @param Exception $original_error
29
     * @param string    $message
30
     */
31
    public function __construct(Replay $replay, Exception $original_error, $message = "")
32
    {
33
        parent::__construct($message);
34
        $this->original_error = $original_error;
35
        $this->replay = $replay;
36
        $this->message = $message;
37
    }
38
39
    /**
40
     * @return Exception
41
     */
42
    public function getOriginalError()
43
    {
44
        return $this->original_error;
45
    }
46
47
    /**
48
     * @return Replay
49
     */
50
    public function getReplay()
51
    {
52
        return $this->replay;
53
    }
54
}
55