WebhookEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getWebhook() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
5
namespace Webhook\Bundle\Event;
6
7
8
use Symfony\Component\EventDispatcher\Event;
9
use Webhook\Domain\Model\Webhook;
10
11
/**
12
 * Class WebhookEvent
13
 *
14
 * @package Webhook\Bundle\Event
15
 */
16
final class WebhookEvent extends Event
17
{
18
    /** @var  Webhook */
19
    private $webhook;
20
21
    /**
22
     * WebhookEvent constructor.
23
     *
24
     * @param Webhook $webhook
25
     */
26
    public function __construct(Webhook $webhook)
27
    {
28
        $this->webhook = $webhook;
29
    }
30
31
    /**
32
     * @return Webhook
33
     */
34
    public function getWebhook(): Webhook
35
    {
36
        return $this->webhook;
37
    }
38
39
}