*/ private $extraHeaders; /** * @var mixed[] * @phpstan-var array */ private $extraOpts; /** * @param string[] $extraHeaders * @param mixed[] $extraOpts * @phpstan-param list $extraHeaders * @phpstan-param array $extraOpts */ public function __construct(string $page, float $timeout = 10, array $extraHeaders = [], array $extraOpts = []){ $this->page = $page; $this->timeout = $timeout; $this->extraHeaders = $extraHeaders; $this->extraOpts = $extraOpts; } public function getPage() : string{ return $this->page; } public function getTimeout() : float{ return $this->timeout; } /** * @return string[] * @phpstan-return list */ public function getExtraHeaders() : array{ return $this->extraHeaders; } /** * @return mixed[] * @phpstan-return array */ public function getExtraOpts() : array{ return $this->extraOpts; } }