SimpleMethodListener   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A onDelete() 0 4 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
 * SimpleMethodListener
19
 *
20
 * @package Slick\Event\Test\Application\Listener
21
 */
22
final class SimpleMethodListener
23
{
24
25
    #[AsEventListener('test-method')]
26
    public function onDelete(Event $event): object
27
    {
28
        return $event;
29
    }
30
}
31