operations = serialize($operations); } public function onRun() : void{ $operations = 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); } }