Snapshot names */ public static function listSnapshots(): array { self::ensureSnapshotDir(); $snapshots = []; $files = glob(self::SNAPSHOT_DIR . '/*.snapshot'); foreach ($files as $file) { $snapshots[] = basename($file, '.snapshot'); } return $snapshots; } /** * Delete snapshot */ public static function deleteSnapshot(string $snapshotName): bool { $filePath = self::getSnapshotPath($snapshotName); if (file_exists($filePath)) { return unlink($filePath); } return false; } }