Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
14 | trait Joining |
||
15 | { |
||
16 | /** |
||
17 | * @param Config $upstream |
||
18 | */ |
||
19 | public function joining(Config $upstream) : void |
||
20 | { |
||
21 | $upstream->jFollow(function (...$args) { |
||
22 | $this->jWatched(...$args); |
||
23 | }); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param Closure $observer |
||
28 | */ |
||
29 | private function jFollow(Closure $observer) : void |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @param mixed $value |
||
36 | * @param string $key |
||
37 | */ |
||
38 | private function jWatched($value, string $key) : void |
||
44 | } |
||
45 | } |
||
46 |