InvokerListener   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of Event
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Slick\Event\Test\Application\Listener;
13
14
use Slick\Event\Application\Attribute\AsEventListener;
15
use Slick\Event\Event;
16
17
/**
18
 * InvokerListener
19
 *
20
 * @package Slick\Event\Test\Application\Listener
21
 */
22
#[AsEventListener]
23
#[AsEventListener]
24
final class InvokerListener
25
{
26
27
    public function __invoke(Event $event): object
28
    {
29
        return $event;
30
    }
31
}
32