*/ private array $top_domains; /** * Full decoded API response for storage. * * @var array */ private array $raw_response; /** * Constructs a new scan result. * * @param int $match_count Number of pages or images found. * @param array $top_domains Domain → count map. * @param array $raw_response Full decoded API payload. */ public function __construct( int $match_count, array $top_domains, array $raw_response ) { $this->match_count = $match_count; $this->top_domains = $top_domains; $this->raw_response = $raw_response; } /** * Returns the number of matching pages or images found. * * @return int */ public function match_count(): int { return $this->match_count; } /** * Returns the top-domain occurrence map (domain → count), max 10 entries. * * @return array */ public function top_domains(): array { return $this->top_domains; } /** * Returns the full decoded API response payload. * * @return array */ public function raw_response(): array { return $this->raw_response; } }