From 2e9ec861be17ded84bb56d719d4028db872f5fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Kr=C3=A4mer?= Date: Mon, 27 Jun 2016 16:54:15 +0200 Subject: [PATCH] Adding a type to the TableSchemaInterface --- src/Datasource/TableSchemaInterface.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Datasource/TableSchemaInterface.php b/src/Datasource/TableSchemaInterface.php index 47565a8251b..ed27762af04 100644 --- a/src/Datasource/TableSchemaInterface.php +++ b/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); }