Passed
Push — master ( bcb124...6c908c )
by Fabien
02:02
created

Broker::notifyAll()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
c 0
b 0
f 0
nc 2
nop 2
dl 0
loc 4
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Churn\Event;
6
7
/**
8
 * @internal
9
 */
10
interface Broker
11
{
12
    /**
13
     * @param object $subscriber A subscriber object.
14
     */
15
    public function subscribe($subscriber): void;
16
17
    /**
18
     * @param Event $event The triggered event.
19
     */
20
    public function notify(Event $event): void;
21
}
22