From 15aab7902a755dbceb0e017839d1fb0d35b12f2c Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Mon, 20 Jul 2015 22:47:55 -0700 Subject: [PATCH] Factory should return Interface --- src/Spout/Reader/ReaderFactory.php | 2 +- src/Spout/Writer/WriterFactory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Spout/Reader/ReaderFactory.php b/src/Spout/Reader/ReaderFactory.php index 800ac89..0e39f59 100644 --- a/src/Spout/Reader/ReaderFactory.php +++ b/src/Spout/Reader/ReaderFactory.php @@ -19,7 +19,7 @@ class ReaderFactory * This creates an instance of the appropriate reader, given the type of the file to be read * * @param string $readerType Type of the reader to instantiate - * @return \Box\Spout\Reader\CSV\Reader|\Box\Spout\Reader\XLSX\Reader + * @return ReaderInterface * @throws \Box\Spout\Common\Exception\UnsupportedTypeException */ public static function create($readerType) diff --git a/src/Spout/Writer/WriterFactory.php b/src/Spout/Writer/WriterFactory.php index 5fd4f28..ee93cd7 100644 --- a/src/Spout/Writer/WriterFactory.php +++ b/src/Spout/Writer/WriterFactory.php @@ -19,7 +19,7 @@ class WriterFactory * This creates an instance of the appropriate writer, given the type of the file to be read * * @param string $writerType Type of the writer to instantiate - * @return \Box\Spout\Writer\CSV\Writer|\Box\Spout\Writer\XLSX\Writer + * @return WriterInterface * @throws \Box\Spout\Common\Exception\UnsupportedTypeException */ public static function create($writerType)