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   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 6
cts 9
cp 0.6667
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getException() 0 4 1
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