PluginRemoveResult
Result of a plugin removal operation. Note: `$migrationsReverted` is a reserved field — migration rollback on removal is not yet wired, so it is currently always 0. Do not treat a 0 as "no migrations existed"; treat it as "rollback not performed".
PluginRemoveResult::__construct()
public function __construct(bool $success, string $pluginName, bool $dataKept = false, int $migrationsReverted = 0, ?string $error = null):Parameters
| Nombre | Tipo | Descripción |
|---|---|---|
| $success | bool | |
| $pluginName | string | |
| $dataKept | bool | |
| $migrationsReverted | int | |
| $error | ?string |
PluginRemoveResult::success()
public static function success(string $pluginName, bool $dataKept = false, int $migrationsReverted = 0): selfBuild a successful removal result.
Parameters
| Nombre | Tipo | Descripción |
|---|---|---|
| $pluginName | string | |
| $dataKept | bool | |
| $migrationsReverted | int |
PluginRemoveResult::failure()
public static function failure(string $pluginName, string $error): selfBuild a failed removal result carrying the reason.
Parameters
| Nombre | Tipo | Descripción |
|---|---|---|
| $pluginName | string | |
| $error | string |