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

Broker::subscribe()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 3
nc 3
nop 1
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