result = $output['result'] ?? ''; $this->exception = $output['exception'] ?? null; $this->consoleMessages = $output['consoleMessages'] ?? null; $this->requestsList = $output['requestsList'] ?? null; $this->failedRequests = $output['failedRequests'] ?? null; $this->pageErrors = $output['pageErrors'] ?? null; $this->redirectHistory = $output['redirectHistory'] ?? null; } public function getResult(): string { return $this->result; } public function getException(): ?string { return $this->exception; } /** @return null|array{ * type: string, * message: string, * location: array, * stackTrace: string * } */ public function getConsoleMessages(): ?array { return $this->consoleMessages; } /** * @return null|array{url: string} */ public function getRequestsList(): ?array { return $this->requestsList; } /** * @return null|array{status: int, url: string} */ public function getFailedRequests(): ?array { return $this->failedRequests; } /** @return null|array{ * name: string, * message: string * } */ public function getPageErrors(): ?array { return $this->pageErrors; } /** @return null|array{ * url: string, * status: int, * statusText: string, * headers: array * } */ public function getRedirectHistory(): ?array { return $this->redirectHistory; } }