*/
namespace OCP\Migration;
+use Closure;
use OCP\DB\ISchemaWrapper;
/**
*/
interface IMigrationStep {
/**
- * Human readable name of the migration step
+ * Human-readable name of the migration step
*
* @return string
* @since 14.0.0
public function name(): string;
/**
- * Human readable description of the migration steps
+ * Human-readable description of the migration step
*
* @return string
* @since 14.0.0
/**
* @param IOutput $output
- * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @since 13.0.0
*/
- public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options);
+ public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options);
/**
* @param IOutput $output
- * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @return null|ISchemaWrapper
* @since 13.0.0
*/
- public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options);
+ public function changeSchema(IOutput $output, Closure $schemaClosure, array $options);
/**
* @param IOutput $output
- * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @since 13.0.0
*/
- public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options);
+ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options);
}
*/
namespace OCP\Migration;
+use Closure;
+use OCP\DB\ISchemaWrapper;
+
/**
* @since 13.0.0
*/
abstract class SimpleMigrationStep implements IMigrationStep {
/**
- * Human readable name of the migration step
+ * Human-readable name of the migration step
*
* @return string
* @since 14.0.0
}
/**
- * Human readable description of the migration step
+ * Human-readable description of the migration step
*
* @return string
* @since 14.0.0
}
/**
- * {@inheritDoc}
- *
+ * @param IOutput $output
+ * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @psalm-param Closure():ISchemaWrapper $schemaClosure
+ * @param array $options
* @since 13.0.0
*/
public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {
}
/**
- * {@inheritDoc}
- *
+ * @param IOutput $output
+ * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @psalm-param Closure():ISchemaWrapper $schemaClosure
+ * @param array $options
+ * @return null|ISchemaWrapper
* @since 13.0.0
*/
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
}
/**
- * {@inheritDoc}
- *
+ * @param IOutput $output
+ * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @psalm-param Closure():ISchemaWrapper $schemaClosure
+ * @param array $options
* @since 13.0.0
*/
public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options) {