Browse Source

Adding a type to the TableSchemaInterface

Florian Krämer 9 years ago
parent
commit
2e9ec861be
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/Datasource/TableSchemaInterface.php

+ 6 - 3
src/Datasource/TableSchemaInterface.php

@@ -14,16 +14,19 @@
  */
 namespace Cake\Datasource;
 
+use Cake\Database\Schema\Table;
+
 /**
  * Defines the interface for getting the schema.
  */
 interface TableSchemaInterface
 {
+
     /**
      * Get and set the schema for this fixture.
      *
-     * @param array|\Cake\Database\Schema\Table|null $schema The table to set.
-     * @return array|\Cake\Database\Schema\Table|null
+     * @param \Cake\Database\Schema\Table|null $schema The table to set.
+     * @return \Cake\Database\Schema\Table|null
      */
-    public function schema($schema = null);
+    public function schema(Table $schema = null);
 }