protected function resolveDatabaseImportPath($import_path = null)
    {
        if (!isset($import_path)) {
            $import_path = $this->doAsk(
                new Question(
                    'Input the path to the database file: '
                )
            );

            if (!file_exists($import_path)) {
                throw new \Exception(
                    'The path to the database file does not exist.'
                );
            }
        }

        return new \SplFileInfo($import_path);
    }
protected function resolveDatabaseImportPath($import_path = null)
    {
        if (!isset($import_path)) {
            $import_path = $this->doAsk(
                new Question(
                    'Input the path to the database file: '
                )
            );

            if (!file_exists($import_path)) {
                throw new \Exception(
                    'The path to the database file does not exist.'
                );
            }
        }

        return new \SplFileInfo($import_path);
    }
protected function resolveDatabaseImportPath ( $ import_path = null ) { if ( ! isset ( $ import_path ) ) { $ import_path = $ this -> doAsk ( new Question ( 'Input the path to the database file: ' ) ) ; if ( ! file_exists ( $ import_path ) ) { throw new \ Exception ( 'The path to the database file does not exist.' ) ; } } return new \ SplFileInfo ( $ import_path ) ; }
Resolve database import path.

@param string|null $import_path
The path to use for the database import.

@return \SplFileInfo
The database import path.
@throws \Exception
Resolve database import path .