@@ 351-360 (lines=10) @@ | ||
348 | * @param ResourceInterface $object |
|
349 | * @return ResourceInterface |
|
350 | */ |
|
351 | public function buildAsyncFromSync(string $resource, ResourceInterface $object): ResourceInterface |
|
352 | { |
|
353 | return $this->hydrateFQCN( |
|
354 | $this->options[Options::NAMESPACE] . '\\Async\\' . $resource, |
|
355 | $this->extractFQCN( |
|
356 | $this->options[Options::NAMESPACE] . '\\Sync\\' . $resource, |
|
357 | $object |
|
358 | ) |
|
359 | ); |
|
360 | } |
|
361 | ||
362 | /** |
|
363 | * @param string $resource |
|
@@ 367-376 (lines=10) @@ | ||
364 | * @param ResourceInterface $object |
|
365 | * @return ResourceInterface |
|
366 | */ |
|
367 | public function buildSyncFromAsync(string $resource, ResourceInterface $object): ResourceInterface |
|
368 | { |
|
369 | return $this->hydrateFQCN( |
|
370 | $this->options[Options::NAMESPACE] . '\\Sync\\' . $resource, |
|
371 | $this->extractFQCN( |
|
372 | $this->options[Options::NAMESPACE] . '\\Async\\' . $resource, |
|
373 | $object |
|
374 | ) |
|
375 | ); |
|
376 | } |
|
377 | ||
378 | /** |
|
379 | * @param string $class |