firefly-iii/app/Helpers/Csv/WizardInterface.php

61 lines
1.1 KiB
PHP
Raw Normal View History

2015-07-04 23:18:02 -05:00
<?php
2016-02-05 05:08:25 -06:00
declare(strict_types = 1);
2015-07-04 23:18:02 -05:00
namespace FireflyIII\Helpers\Csv;
2015-07-06 09:52:18 -05:00
2015-07-04 23:18:02 -05:00
use League\Csv\Reader;
/**
* Interface WizardInterface
*
* @package FireflyIII\Helpers\Csv
*/
interface WizardInterface
{
/**
* @param Reader $reader
* @param array $map
* @param bool $hasHeaders
*
* @return array
*/
2016-04-06 09:37:28 -05:00
public function getMappableValues(Reader $reader, array $map, bool $hasHeaders): array;
2015-07-04 23:18:02 -05:00
/**
* @param array $roles
2016-02-05 02:25:15 -06:00
* @param array $map
2015-07-04 23:18:02 -05:00
*
* @return array
*/
2016-04-06 09:37:28 -05:00
public function processSelectedMapping(array $roles, array $map): array;
2015-07-04 23:18:02 -05:00
/**
2016-02-05 02:25:15 -06:00
* @param array $input
2015-07-04 23:18:02 -05:00
*
* @return array
*/
2016-04-06 09:37:28 -05:00
public function processSelectedRoles(array $input): array;
2015-07-04 23:18:02 -05:00
/**
* @param array $fields
*
* @return bool
*/
2016-04-06 09:37:28 -05:00
public function sessionHasValues(array $fields): bool;
2015-07-04 23:18:02 -05:00
/**
* @param array $map
*
* @return array
*/
2016-04-06 09:37:28 -05:00
public function showOptions(array $map): array;
2015-07-04 23:18:02 -05:00
/**
2016-02-05 02:25:15 -06:00
* @param string $path
2015-07-04 23:18:02 -05:00
*
* @return string
*/
2016-04-06 09:37:28 -05:00
public function storeCsvFile(string $path): string;
2015-07-04 23:18:02 -05:00
2015-07-09 14:26:40 -05:00
}