$metadata Key/value pairs from the `-- webcalendar-export:` header. * @param string $charset Connection charset declared in the dump ('' if none found). * @param array>> $tables Parsed rows keyed by table name. * @param list $warnings Non-fatal problems encountered while parsing. * @param array $skipped_tables INSERT statements ignored, keyed by table name. */ public function __construct( public readonly array $metadata, public readonly string $charset, public readonly array $tables, public readonly array $warnings, public readonly array $skipped_tables ) { } /** * Rows parsed for a table (empty list if the table was absent). * * @psalm-suppress PossiblyUnusedMethod * @return list> */ public function rows( string $table ): array { return $this->tables[ $table ] ?? array(); } /** * @psalm-suppress PossiblyUnusedMethod */ public function count( string $table ): int { return count( $this->tables[ $table ] ?? array() ); } }