, extraOpts?: array}> $operations */ public function __construct(array $operations){ $this->operations = igbinary_serialize($operations); } public function onRun() : void{ /** @phpstan-var list, extraOpts?: array}> $operations */ $operations = igbinary_unserialize($this->operations); $results = []; foreach($operations as $op){ try{ $results[] = Internet::simpleCurl($op["page"], $op["timeout"] ?? 10, $op["extraHeaders"] ?? [], $op["extraOpts"] ?? []); }catch(InternetException $e){ $results[] = $e; } } $this->setResult($results); } }