Passed
Pull Request — master (#238)
by Alexander
02:41
created

Event   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 18
rs 10
c 1
b 0
f 0
eloc 4
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A registered() 0 3 1
1
<?php
2
3
namespace Yiisoft\Yii\Web\Tests\Config;
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