EventSubscriberMock::getSubscribedEvents()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 2
c 1
b 1
f 1
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Azine\MailgunWebhooksBundle\Tests;
4
5
use Azine\MailgunWebhooksBundle\Entity\MailgunEvent;
6
use Azine\MailgunWebhooksBundle\Entity\MailgunWebhookEvent;
7
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
8
9
class EventSubscriberMock implements EventSubscriberInterface
10
{
11
    public static function getSubscribedEvents()
12
    {
13
        return array(
14
            MailgunEvent::CREATE_EVENT => 'handleCreate',
15
        );
16
    }
17
18
    public function handleCreate(MailgunWebhookEvent $event)
19
    {
20
        return $event->getMailgunEvent();
21
    }
22
}
23