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

Broker   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 9
eloc 17
c 1
b 0
f 0
dl 0
loc 61
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