Completed
Push — master ( b9492e...31cd44 )
by Alexander
11:15
created

Event   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
A registered() 0 4 1
1
<?php
2
namespace Yiisoft\EventDispatcher\Tests\Event;
3
4
class Event
5
{
6
    private $registered = [];
7
8
    public function register(string $name): void
9
    {
10
        $this->registered[] = $name;
11
    }
12
13
    public function registered(): array
14
    {
15
        return $this->registered;
16
    }
17
}
18