7 declare(strict_types=1);
21 private $moduleResource;
30 $this->moduleResource = $moduleResource;
42 $dbVersion = (string) $this->moduleResource->getDataVersion($moduleName);
43 return in_array(PatchVersionInterface::class, class_implements($patchClassName)) &&
44 version_compare(
call_user_func([$patchClassName,
'getVersion']), $dbVersion) <= 0;
56 $dbVersion = (string) $this->moduleResource->getDbVersion($moduleName);
57 return in_array(PatchVersionInterface::class, class_implements($patchClassName)) &&
58 version_compare(
call_user_func([$patchClassName,
'getVersion']), $dbVersion) <= 0;
call_user_func($callable, $param)
isSkipableBySchemaSetupVersion(string $patchClassName, string $moduleName)
__construct(ModuleResource $moduleResource)
isSkipableByDataSetupVersion(string $patchClassName, string $moduleName)