DefaultEventResolver::getEventLogInfo()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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