@@ -39,6 +39,7 @@ interface IImportSource {
3939 *
4040 * @param string $path Full path to the file in the export archive.
4141 * @return string The full content of the file.
42+ * @throws UserMigrationException
4243 *
4344 * @since 24.0.0
4445 */
@@ -49,6 +50,7 @@ public function getFileContents(string $path): string;
4950 *
5051 * @param string $path Full path to the file in the export archive.
5152 * @return resource A stream resource to read from to get the file content.
53+ * @throws UserMigrationException
5254 *
5355 * @since 24.0.0
5456 */
@@ -59,6 +61,7 @@ public function getFileAsStream(string $path);
5961 *
6062 * @param string $path Full path to the folder in the export archive.
6163 * @return array The list of files.
64+ * @throws UserMigrationException
6265 *
6366 * @since 24.0.0
6467 */
@@ -67,6 +70,8 @@ public function getFolderListing(string $path): array;
6770 /**
6871 * Test if a path exists, which may be a file or a folder
6972 *
73+ * @throws UserMigrationException
74+ *
7075 * @since 24.0.0
7176 */
7277 public function pathExists (string $ path ): bool ;
@@ -77,20 +82,23 @@ public function pathExists(string $path): bool;
7782 * Folder $destination folder to copy into
7883 * string $sourcePath path in the export archive
7984 *
85+ * @throws UserMigrationException
86+ *
8087 * @since 24.0.0
8188 */
82- public function copyToFolder (Folder $ destination , string $ sourcePath ): bool ;
89+ public function copyToFolder (Folder $ destination , string $ sourcePath ): void ;
8390
8491 /**
8592 * @return array<string,int> Migrators and their versions from the export archive.
93+ * @throws UserMigrationException
8694 *
8795 * @since 24.0.0
8896 */
8997 public function getMigratorVersions (): array ;
9098
9199 /**
92100 * @return ?int Version for this migrator from the export archive. Null means migrator missing.
93- *
101+ * @throws UserMigrationException
94102 * @param string $migrator Migrator id (as returned by IMigrator::getId)
95103 *
96104 * @since 24.0.0
@@ -100,13 +108,17 @@ public function getMigratorVersion(string $migrator): ?int;
100108 /**
101109 * Get original uid of the imported account
102110 *
111+ * @throws UserMigrationException
112+ *
103113 * @since 24.0.0
104114 */
105115 public function getOriginalUid (): string ;
106116
107117 /**
108118 * Called after import is complete
109119 *
120+ * @throws UserMigrationException
121+ *
110122 * @since 24.0.0
111123 */
112124 public function close (): void ;
0 commit comments