Passed
Push — master ( 680194...b4f0aa )
by Alexander
03:27
created

Event   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 18
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Yiisoft\EventDispatcher\Tests\Event;
4
5
class Event
6
{
7
    /**
8
     * @var string[]
9
     */
10
    private array $registered = [];
11
12
    public function register(string $name): void
13
    {
14
        $this->registered[] = $name;
15
    }
16
17
    /**
18
     * @return string[]
19
     */
20
    public function registered(): array
21
    {
22
        return $this->registered;
23
    }
24
}
25