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.

EnvelopeEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 61.53%

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 31
ccs 8
cts 13
cp 0.6153
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getEnvelope() 0 4 1
A getQueue() 0 4 1
1
<?php
2
3
namespace Bernard\Event;
4
5
use Bernard\Envelope;
6
use Bernard\Queue;
7
8
class EnvelopeEvent extends \Symfony\Component\EventDispatcher\Event
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
9
{
10
    protected $envelope;
11
    protected $queue;
12
13
    /**
14
     * @param Envelope $envelope
15
     * @param Queue    $queue
16
     */
17 17
    public function __construct(Envelope $envelope, Queue $queue)
18
    {
19 17
        $this->envelope = $envelope;
20 17
        $this->queue = $queue;
21 17
    }
22
23
    /**
24
     * @return Envelope
25
     */
26 4
    public function getEnvelope()
27
    {
28 4
        return $this->envelope;
29
    }
30
31
    /**
32
     * @return Queue
33
     */
34 1
    public function getQueue()
35
    {
36 1
        return $this->queue;
37
    }
38
}
39