| @@ 198-207 (lines=10) @@ | ||
| 195 | * @param ResourceInterface $object |
|
| 196 | * @return ResourceInterface |
|
| 197 | */ |
|
| 198 | public function buildAsyncFromSync(string $resource, ResourceInterface $object): ResourceInterface |
|
| 199 | { |
|
| 200 | return $this->hydrateFQCN( |
|
| 201 | $this->options[Options::NAMESPACE] . '\\Async\\' . $resource, |
|
| 202 | $this->extractFQCN( |
|
| 203 | $this->options[Options::NAMESPACE] . '\\Sync\\' . $resource, |
|
| 204 | $object |
|
| 205 | ) |
|
| 206 | ); |
|
| 207 | } |
|
| 208 | ||
| 209 | /** |
|
| 210 | * @param string $resource |
|
| @@ 214-223 (lines=10) @@ | ||
| 211 | * @param ResourceInterface $object |
|
| 212 | * @return ResourceInterface |
|
| 213 | */ |
|
| 214 | public function buildSyncFromAsync(string $resource, ResourceInterface $object): ResourceInterface |
|
| 215 | { |
|
| 216 | return $this->hydrateFQCN( |
|
| 217 | $this->options[Options::NAMESPACE] . '\\Sync\\' . $resource, |
|
| 218 | $this->extractFQCN( |
|
| 219 | $this->options[Options::NAMESPACE] . '\\Async\\' . $resource, |
|
| 220 | $object |
|
| 221 | ) |
|
| 222 | ); |
|
| 223 | } |
|
| 224 | ||
| 225 | protected function setUpAnnotations(): void |
|
| 226 | { |
|