/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Setup/Patch/PatchRevertableInterface.php
29 строк
712 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2018 Adobe * All Rights Reserved. */ declare(strict_types=1); namespace Magento\Framework\Setup\Patch; /** * Revertable means, that patch can be reverted * * All patches (@see PatchInterface) that implement this interfaces should have next values: * - do not use application layer: like Serilizer, Collections, etc * - use only some DML operations: INSERT, UPDATE * - DELETE DML operation is prohibited, because it can cause triggering foreign keys constraints * - all schema patches are not revertable * * @api */ interface PatchRevertableInterface { /** * Rollback all changes, done by this patch * * @return void */ public function revert(); }