DefaultEventResolver   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getEventLogInfo() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the XiideaEasyAuditBundle package.
5
 *
6
 * (c) Xiidea <http://www.xiidea.net>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Xiidea\EasyAuditBundle\Resolver;
13
14
use Symfony\Contracts\EventDispatcher\Event;
15
16
class DefaultEventResolver implements EventResolverInterface
17
{
18
    /**
19
     * @param Event $event
20
     * @param $eventName
21
     *
22
     * @return array
23
     */
24
    #[\Override]
25
    public function getEventLogInfo(Event $event, $eventName)
26
    {
27
        return array(
28
            'description' => $eventName,
29
            'type' => $eventName,
30
        );
31
    }
32
}
33