Factory should return Interface

This commit is contained in:
Adrien Loison committed 2015-07-26 23:53:17 -07:00
1 parent c672558a18
commit 15aab7902a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ class ReaderFactory
* This creates an instance of the appropriate reader, given the type of the file to be read * 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 * @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 * @throws \Box\Spout\Common\Exception\UnsupportedTypeException
*/ */
public static function create($readerType) public static function create($readerType)
+1 -1
View File
@@ -19,7 +19,7 @@ class WriterFactory
* This creates an instance of the appropriate writer, given the type of the file to be read * 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 * @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 * @throws \Box\Spout\Common\Exception\UnsupportedTypeException
*/ */
public static function create($writerType) public static function create($writerType)