Passed
Pull Request — master (#355)
by Fabien
02:09
created

Broker::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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