Rename to PR Vision (PRV_/pr-vision); fix www-strip char-mask in competitor display (str_starts_with); make PHPCS a CI gate; remove dead in-run cache. QA: APPROVE — qa-reviews/pr-vision/2026-06-13-c633fdb9e1541386a713a6de12d2ee2ae4239640.md Agent-Session: pr-vision rename v0.1.1 merge
47 lines
1.3 KiB
PHP
47 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Contract for all PR Vision data collectors.
|
|
*
|
|
* @package PrVision
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* Seam: contract for all PR Vision data collectors.
|
|
*
|
|
* V1 implements only PRV_Ai_Visibility_Collector. Future collectors
|
|
* (keyword rankings, schema coverage, technical-SEO) implement this
|
|
* interface and register themselves with PRV_Collector_Registry without
|
|
* changing the dashboard shell.
|
|
*
|
|
* Who triggers: PRV_Collector_Registry dispatches registered collectors.
|
|
* Dependencies: None — pure interface.
|
|
*
|
|
* @see class-prv-ai-visibility-collector.php — v1 implementation.
|
|
* @see class-prv-collector-registry.php — Registration hub.
|
|
* @see ARCHITECTURE.md — §Collector/Panel seam.
|
|
* @package PrVision
|
|
*/
|
|
interface PRV_Data_Collector {
|
|
|
|
/**
|
|
* Collect and return the data payload for this category.
|
|
*
|
|
* The return shape is collector-specific; the dashboard panel for this
|
|
* category receives the same array and is responsible for rendering it.
|
|
*
|
|
* @return array<string, mixed> Collected data.
|
|
*/
|
|
public function collect(): array;
|
|
|
|
/**
|
|
* Short machine key identifying this collector (e.g. "ai_visibility").
|
|
*
|
|
* Used as the registry key and as the panel lookup key.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_key(): string;
|
|
}
|