TableSchemaAwareInterface.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  4. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  5. *
  6. * Licensed under The MIT License
  7. * For full copyright and license information, please see the LICENSE.txt
  8. * Redistributions of files must retain the above copyright notice.
  9. *
  10. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  11. * @link http://cakephp.org CakePHP(tm) Project
  12. * @since 3.5.0
  13. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  14. */
  15. namespace Cake\Database\Schema;
  16. /**
  17. * Defines the interface for getting the schema.
  18. */
  19. interface TableSchemaAwareInterface
  20. {
  21. /**
  22. * Get and set the schema for this fixture.
  23. *
  24. * @return \Cake\Database\Schema\TableSchemaInterface|null
  25. */
  26. public function getTableSchema();
  27. /**
  28. * Get and set the schema for this fixture.
  29. *
  30. * @param \Cake\Database\Schema\TableSchemaInterface $schema The table to set.
  31. * @return $this
  32. */
  33. public function setTableSchema(TableSchemaInterface $schema);
  34. }