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