} */ public array $verify; public string $docsUrl; public ?string $note; /** * @param array{method: string, ip_list_url?: string, domains?: array} $verify */ public function __construct( string $id, string $vendor, string $uaPattern, string $category, array $verify, string $docsUrl, ?string $note = null ) { $this->id = $id; $this->vendor = $vendor; $this->uaPattern = $uaPattern; $this->category = $category; $this->verify = $verify; $this->docsUrl = $docsUrl; $this->note = $note; } public function verifyMethod(): string { return $this->verify['method']; } /** * @return array */ public function verifyDomains(): array { return $this->verify['domains'] ?? []; } public function verifyIpListUrl(): ?string { return $this->verify['ip_list_url'] ?? null; } }