. */ namespace SP\Domain\Import; use SP\Infrastructure\File\FileException; use SP\Infrastructure\File\FileHandlerInterface; /** * Clase FileImport encargada el leer archivos para su importación * * @package SP */ interface FileImportInterface { public function getFilePath(): string; /** * @throws FileException */ public function getFileType(): string; /** * Leer los datos de un archivo subido a un array * * @throws FileException */ public function readFileToArray(): array; /** * Leer los datos de un archivo subido a una cadena * * @throws FileException */ public function readFileToString(): string; public function getFileHandler(): FileHandlerInterface; }