ClassListener   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 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\EventListener;
16
17
/**
18
 * ClassListener
19
 *
20
 * @package Slick\Event\Test\Application\Listener
21
 */
22
#[AsEventListener(event: "test", priority: 10)]
23
final class ClassListener implements EventListener
24
{
25
26
    /**
27
     * @inheritDoc
28
     */
29
    public function handle(object $event): object
30
    {
31
        return $event;
32
    }
33
}
34