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.

RejectEnvelopeEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1.008

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 5
cp 0.8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 1.008
1
<?php
2
3
namespace Bernard\Event;
4
5
use Bernard\Envelope;
6
use Bernard\Queue;
7
8
class RejectEnvelopeEvent extends EnvelopeEvent
9
{
10
    protected $exception;
11
12
    /**
13
     * @param Envelope              $envelope
14
     * @param Queue                 $queue
15
     * @param \Exception|\Throwable $exception
16
     */
17 7
    public function __construct(Envelope $envelope, Queue $queue, $exception)
18
    {
19 7
        parent::__construct($envelope, $queue);
20
21 7
        $this->exception = $exception;
22 7
    }
23
24
    /**
25
     * @return \Exception|\Throwable
26
     */
27 3
    public function getException()
28
    {
29 3
        return $this->exception;
30
    }
31
}
32