@@ -98,6 +98,9 @@ discard block |
||
| 98 | 98 | return $this->formatReadable($entity, $readable); |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string|false $readable |
|
| 103 | + */ |
|
| 101 | 104 | public function formatUser(string $entity, $readable) : string |
| 102 | 105 | { |
| 103 | 106 | if ($readable) { |
@@ -112,6 +115,9 @@ discard block |
||
| 112 | 115 | return $entity; |
| 113 | 116 | } |
| 114 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string|false $readable |
|
| 120 | + */ |
|
| 115 | 121 | public function formatChannel(string $entity, $readable) : string |
| 116 | 122 | { |
| 117 | 123 | if ($readable) { |
@@ -126,6 +132,9 @@ discard block |
||
| 126 | 132 | return $entity; |
| 127 | 133 | } |
| 128 | 134 | |
| 135 | + /** |
|
| 136 | + * @param string|false $readable |
|
| 137 | + */ |
|
| 129 | 138 | public function formatReadable(string $match, $readable) : string |
| 130 | 139 | { |
| 131 | 140 | return $readable ?? $match; |
@@ -84,6 +84,9 @@ |
||
| 84 | 84 | return $matches; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | + /** |
|
| 88 | + * @param string $msg |
|
| 89 | + */ |
|
| 87 | 90 | private function debug($msg) |
| 88 | 91 | { |
| 89 | 92 | $this->debug("MethodMatcher {$this->name}: $msg"); |
@@ -56,6 +56,9 @@ |
||
| 56 | 56 | return true; |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | + /** |
|
| 60 | + * @param string $msg |
|
| 61 | + */ |
|
| 59 | 62 | private function debug($msg) |
| 60 | 63 | { |
| 61 | 64 | $this->log(LogLevel::DEBUG, "PluginMatcher {$this->pluginId}: $msg"); |
@@ -115,6 +115,9 @@ |
||
| 115 | 115 | $this->realTimeClient->apiCall('chat.postMessage', $parameters); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $event |
|
| 120 | + */ |
|
| 118 | 121 | public function on($event, array $onMessage) |
| 119 | 122 | { |
| 120 | 123 | $this->realTimeClient->on($event, function (Payload $payload) use ($onMessage) { |
@@ -137,11 +137,17 @@ |
||
| 137 | 137 | return implode("\n", $statuses); |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param integer $interval |
|
| 142 | + */ |
|
| 140 | 143 | public function addTimer($interval, callable $callback) |
| 141 | 144 | { |
| 142 | 145 | $this->eventLoop->addTimer($interval, $callback); |
| 143 | 146 | } |
| 144 | 147 | |
| 148 | + /** |
|
| 149 | + * @param integer $interval |
|
| 150 | + */ |
|
| 145 | 151 | public function addPeriodicTimer($interval, callable $callback) |
| 146 | 152 | { |
| 147 | 153 | $this->eventLoop->addPeriodicTimer($interval, $callback); |