Passed
Push — master ( 88940e...c2bb1d )
by Paweł
12:37
created

AsEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace pjpawel\LightApi\Component\Event;
4
5
use Attribute;
6
7
#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD)]
8
class AsEvent
9
{
10
11
    /**
12
     * @var string Event name
13
     */
14
    public string $name;
15
16
    public function __construct(string $name)
17
    {
18
        $this->name = $name;
19
    }
20
21
}