1 | <?php |
||
22 | abstract class AbstractSystem implements SystemInterface, LoggableInterface |
||
23 | { |
||
24 | use Loggable; |
||
25 | use IdentityMap; |
||
26 | |||
27 | /** |
||
28 | * @var LoopInterface |
||
29 | */ |
||
30 | protected $loop; |
||
31 | |||
32 | /** |
||
33 | * @param LoopInterface $loop |
||
34 | * @param null|LoggerInterface $logger |
||
35 | */ |
||
36 | public function onRegister(LoopInterface $loop, ?LoggerInterface $logger): void |
||
41 | |||
42 | /** |
||
43 | * @param string $id |
||
44 | * @param \Closure $then |
||
45 | * @return ChannelInterface |
||
46 | */ |
||
47 | protected function getChannel(string $id, \Closure $then): ChannelInterface |
||
51 | |||
52 | /** |
||
53 | * @param string $id |
||
54 | * @param \Closure $then |
||
55 | * @return UserInterface |
||
56 | */ |
||
57 | protected function getUser(string $id, \Closure $then): UserInterface |
||
61 | } |
||
62 |