MCPcopy Create free account
hub / github.com/Rello/analytics / canImport

Method canImport

lib/UserMigration/AnalyticsMigrator.php:115–127  ·  view source on GitHub ↗
(IImportSource $importSource)

Source from the content-addressed store, hash-verified

113 }
114
115 public function canImport(IImportSource $importSource): bool {
116 try {
117 $version = $importSource->getMigratorVersion($this->getId());
118 } catch (UserMigrationException) {
119 return false;
120 }
121
122 if ($version === null) {
123 return true;
124 }
125
126 return $version <= self::VERSION;
127 }
128
129 /**
130 * @return list<array<string,mixed>>

Calls 2

getIdMethod · 0.95
getMigratorVersionMethod · 0.80