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

60 lines
1007 B
PHP
Raw Normal View History

2015-07-04 23:18:02 -05:00
<?php
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
*/
public function getMappableValues($reader, array $map, $hasHeaders);
/**
* @param array $roles
* @param mixed $map
*
* @return array
*/
public function processSelectedMapping(array $roles, $map);
/**
* @param mixed $input
*
* @return array
*/
public function processSelectedRoles($input);
/**
* @param array $fields
*
* @return bool
*/
public function sessionHasValues(array $fields);
/**
* @param array $map
*
* @return array
*/
public function showOptions(array $map);
/**
* @param $path
*
* @return string
*/
public function storeCsvFile($path);
2015-07-09 14:26:40 -05:00
}