1 | <?php |
||
21 | class GitterChannel extends AbstractChannel |
||
22 | { |
||
23 | /** |
||
24 | * GitterChannel constructor. |
||
25 | * @param SystemInterface|GitterSystem $system |
||
26 | * @param array $data |
||
27 | */ |
||
28 | public function __construct(SystemInterface $system, array $data) |
||
34 | |||
35 | /** |
||
36 | * @param array $data |
||
37 | * @return string |
||
38 | */ |
||
39 | private function getChannelName(array $data): string |
||
52 | |||
53 | /** |
||
54 | * @param string|null $beforeId |
||
55 | * @return \Traversable|MessageInterface[] |
||
56 | * @throws \Exception |
||
57 | * @throws \GuzzleHttp\Exception\ClientException |
||
58 | * @throws \InvalidArgumentException |
||
59 | * @throws \RuntimeException |
||
60 | * @throws \Throwable |
||
61 | */ |
||
62 | public function messages(string $beforeId = null): \Traversable |
||
73 | |||
74 | /** |
||
75 | * @param NodeList $nodes |
||
76 | * @return MessageInterface |
||
77 | * @throws \Exception |
||
78 | * @throws \Throwable |
||
79 | */ |
||
80 | public function publish(NodeList $nodes): MessageInterface |
||
90 | |||
91 | /** |
||
92 | * @param \Closure $then |
||
93 | * @throws \Throwable |
||
94 | */ |
||
95 | public function subscribe(\Closure $then): void |
||
106 | |||
107 | /** |
||
108 | * @return array |
||
109 | */ |
||
110 | public function __debugInfo(): array |
||
117 | } |
||
118 |