AsEventListener   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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\Application\Attribute;
13
14
use Attribute;
15
16
/**
17
 * AsEventListener
18
 *
19
 * @package Slick\Event\Application\Attribute
20
 */
21
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
22
final class AsEventListener
23
{
24
    public function __construct(
25
        public string $event = '*',
26
        public ?string $method = null,
27
        public int $priority = 0
28
    ) {
29
    }
30
}
31