for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Box\Spout\Reader\Common\Creator;
use Box\Spout\Reader\ReaderFactory;
use Box\Spout\Reader\ReaderInterface;
/**
* Class EntityFactory
* Factory to create external entities
*/
class EntityFactory
{
* 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
* @throws \Box\Spout\Common\Exception\UnsupportedTypeException
* @return ReaderInterface
public static function createReader($readerType)
return (new ReaderFactory())->create($readerType);
}