Completed
Push — master ( fa6c3b...7c46fd )
by Andrew
04:26
created

Emitter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addListener() 0 4 1
A getListeners() 0 4 1
1
<?php namespace Cairns\Radiate;
2
3
final class Emitter
4
{
5
    private $listeners = [];
6
7
    public function addListener($listener)
8
    {
9
        $this->listeners[] = $listener;
10
    }
11
12
    public function getListeners()
13
    {
14
        return $this->listeners;
15
    }
16
}
17