mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
69 lines
1.3 KiB
PHP
69 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* WizardInterface.php
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
*
|
|
* This software may be modified and distributed under the terms
|
|
* of the MIT license. See the LICENSE file for details.
|
|
*/
|
|
|
|
declare(strict_types = 1);
|
|
|
|
namespace FireflyIII\Helpers\Csv;
|
|
|
|
use League\Csv\Reader;
|
|
|
|
/**
|
|
* Interface WizardInterface
|
|
*
|
|
* @package FireflyIII\Helpers\Csv
|
|
*/
|
|
interface WizardInterface
|
|
{
|
|
/**
|
|
* @param Reader $reader
|
|
* @param array $map
|
|
* @param bool $hasHeaders
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getMappableValues(Reader $reader, array $map, bool $hasHeaders): array;
|
|
|
|
/**
|
|
* @param array $roles
|
|
* @param array $map
|
|
*
|
|
* @return array
|
|
*/
|
|
public function processSelectedMapping(array $roles, array $map): array;
|
|
|
|
/**
|
|
* @param array $input
|
|
*
|
|
* @return array
|
|
*/
|
|
public function processSelectedRoles(array $input): array;
|
|
|
|
/**
|
|
* @param array $fields
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function sessionHasValues(array $fields): bool;
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return array
|
|
*/
|
|
public function showOptions(array $map): array;
|
|
|
|
/**
|
|
* @param string $path
|
|
*
|
|
* @return string
|
|
*/
|
|
public function storeCsvFile(string $path): string;
|
|
|
|
}
|