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