JiraTicketMappedEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A ticket() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace AppBuilder\Event\Application;
6
7
use Symfony\Component\EventDispatcher\Event;
8
9
class JiraTicketMappedEvent extends Event
10
{
11
    /** @var string */
12
    public const NAME = 'jira.ticket.mapped';
13
14
    /** @var array */
15
    private $ticket;
16
17
    public function __construct(array $ticket)
18
    {
19
        $this->ticket = $ticket;
20
    }
21
22
    public function ticket() : array
23
    {
24
        return $this->ticket;
25
    }
26
}
27