12345678910111213141516171819202122232425262728293031 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\TestSetupDeclarationModule3\Setup;
- use Magento\Framework\Setup\InstallDataInterface;
- use Magento\Framework\Setup\ModuleContextInterface;
- use Magento\Framework\Setup\ModuleDataSetupInterface;
- /**
- * Class InstallData
- * @package Magento\TestSetupDeclarationModule3\Setup
- */
- class InstallData implements InstallDataInterface
- {
- /**
- * {@inheritdoc}
- * @SuppressWarnings(PHPMD.CyclomaticComplexity)
- * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
- * @SuppressWarnings(PHPMD.NPathComplexity)
- */
- public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
- {
- $adapter = $setup->getConnection();
- $setup->startSetup();
- $adapter->insertArray('reference_table', ['some_integer'], [7, 2, 3, 5]);
- $setup->endSetup();
- }
- }
|