@@ -44,6 +44,9 @@ |
||
| 44 | 44 | return $this->{$name}; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $name |
|
| 49 | + */ |
|
| 47 | 50 | private function hasCollection($name) |
| 48 | 51 | { |
| 49 | 52 | return property_exists($this, $name) && is_a($this->{$name}, CollectionInterface::class); |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | private $session; |
| 27 | 27 | |
| 28 | 28 | private function __construct(RouterInterface $router, |
| 29 | - RealmInterface $realm = null, |
|
| 30 | - SessionInterface $session = null |
|
| 29 | + RealmInterface $realm = null, |
|
| 30 | + SessionInterface $session = null |
|
| 31 | 31 | ) { |
| 32 | 32 | $this->router = $router; |
| 33 | 33 | $this->realm = $realm; |
@@ -152,6 +152,9 @@ discard block |
||
| 152 | 152 | : $this->metaSubscriptionCollection = new SubscriptionCollection($this->session); |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | + /** |
|
| 156 | + * @param string $procedure |
|
| 157 | + */ |
|
| 155 | 158 | protected function setInitialCall($procedure, callable $callback) |
| 156 | 159 | { |
| 157 | 160 | $this->initialCallProcedure = (string) $procedure; |
@@ -191,6 +194,9 @@ discard block |
||
| 191 | 194 | }; |
| 192 | 195 | } |
| 193 | 196 | |
| 197 | + /** |
|
| 198 | + * @param string $procedure |
|
| 199 | + */ |
|
| 194 | 200 | private function retrieveCallData($procedure, callable $filter = null, $arguments = []) |
| 195 | 201 | { |
| 196 | 202 | $deferred = $this->createDeferred(); |
@@ -201,6 +207,10 @@ discard block |
||
| 201 | 207 | |
| 202 | 208 | $this->session->call($procedure, $arguments) |
| 203 | 209 | ->then( |
| 210 | + |
|
| 211 | + /** |
|
| 212 | + * @param string $res |
|
| 213 | + */ |
|
| 204 | 214 | function ($res) use ($deferred, $filter) { |
| 205 | 215 | $deferred->resolve($filter($res)); |
| 206 | 216 | }, |
@@ -211,7 +221,7 @@ discard block |
||
| 211 | 221 | } |
| 212 | 222 | |
| 213 | 223 | /** |
| 214 | - * @param $event |
|
| 224 | + * @param string $event |
|
| 215 | 225 | * |
| 216 | 226 | * @return \Closure |
| 217 | 227 | */ |