Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/vendor/magento/module-developer/Console/Command/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-developer/Console/Command/patch_template.php.dist

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace %moduleName%\Setup\Patch\%patchType%;

use Magento\Framework\Setup\ModuleDataSetupInterface;
%useDataPatchInterface%%usePatchRevertableInterface%%SchemaPatchInterface%
/**
* Patch is mechanism, that allows to do atomic upgrade data changes
*/
class %class% implements %implementsInterfaces%
{
    /**
     * @var ModuleDataSetupInterface $moduleDataSetup
     */
    private $moduleDataSetup;

    /**
     * @param ModuleDataSetupInterface $moduleDataSetup
     */
    public function __construct(ModuleDataSetupInterface $moduleDataSetup)
    {
        $this->moduleDataSetup = $moduleDataSetup;
    }

    /**
     * Do Upgrade
     *
     * @return void
     */
    public function apply()
    {
    }
%revertFunction%
    /**
     * @inheritdoc
     */
    public function getAliases()
    {
        return [];
    }

    /**
     * @inheritdoc
     */
    public static function getDependencies()
    {
        return [];
    }
}