(IImportSource $importSource)
| 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>> |