12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\Model\ResourceModel\Db;
- use Magento\Framework\DB\Adapter\AdapterInterface as Connection;
- /**
- * @api
- * @since 100.0.2
- */
- interface TransactionManagerInterface
- {
- /**
- * Start transaction
- *
- * @param Connection $connection
- * @return Connection
- */
- public function start(Connection $connection);
- /**
- * Commit transaction
- *
- * @return void
- */
- public function commit();
- /**
- * Rollback transaction
- *
- * @return void
- */
- public function rollBack();
- }
|