SchemaConfigInterface.php 670 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Setup\Declaration\Schema;
  7. use Magento\Framework\Setup\Declaration\Schema\Dto\Schema;
  8. /**
  9. * Schema configuration interface.
  10. *
  11. * Used to fetch schema object with data from either db or XML file.
  12. *
  13. * Declaration has 2 schema builders, that build schema from db and from XML.
  14. */
  15. interface SchemaConfigInterface
  16. {
  17. /**
  18. * Parse DB schema
  19. *
  20. * @return Schema
  21. */
  22. public function getDbConfig();
  23. /**
  24. * Parse XML schema
  25. *
  26. * @return Schema
  27. */
  28. public function getDeclarationConfig();
  29. }