*/ private array $previewRecords; /** * @param int $matchedCount Matched count. * @param int $updatedCount Updated count. * @param list $previewRecords Preview sample. */ public function __construct( private int $matchedCount, private int $updatedCount, array $previewRecords ) { $this->previewRecords = array_values( $previewRecords ); } /** * Number of records matched by filters. */ public function matchedCount(): int { return $this->matchedCount; } /** * Number of records updated. Zero for preview-only results. */ public function updatedCount(): int { return $this->updatedCount; } /** * Preview sample records. * * @return list */ public function previewRecords(): array { return $this->previewRecords; } }