WebhookEvent::getWebhook()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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
}