18 lines
355 B
PHP
18 lines
355 B
PHP
<?php
|
|
|
|
namespace App\Services\Pacs\Sync\Pipes;
|
|
|
|
use App\Services\Pacs\Sync\StudiesSync;
|
|
use Closure;
|
|
|
|
final readonly class ScanStudies
|
|
{
|
|
public function __invoke(StudiesSync $sync, Closure $next): StudiesSync
|
|
{
|
|
$study_ids = $sync->getClient()->getStudiesIds();
|
|
$sync->setStudyIds($study_ids);
|
|
|
|
return $next($sync);
|
|
}
|
|
}
|