SchemaSetupInterface.php 982 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Setup;
  7. /**
  8. * DB schema resource interface
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface SchemaSetupInterface extends SetupInterface
  13. {
  14. /**
  15. * Retrieves 32bit UNIQUE HASH for a Table index
  16. *
  17. * @param string $tableName
  18. * @param array|string $fields
  19. * @param string $indexType
  20. * @return string
  21. */
  22. public function getIdxName($tableName, $fields, $indexType = '');
  23. /**
  24. * Retrieves 32bit UNIQUE HASH for a Table foreign key
  25. *
  26. * @param string $priTableName the target table name
  27. * @param string $priColumnName the target table column name
  28. * @param string $refTableName the reference table name
  29. * @param string $refColumnName the reference table column name
  30. * @return string
  31. */
  32. public function getFkName($priTableName, $priColumnName, $refTableName, $refColumnName);
  33. }