Files
firefly-iii/app/Support/Import/Information/InformationInterface.php

49 lines
1.2 KiB
PHP
Raw Normal View History

2017-08-19 09:22:44 +02:00
<?php
/**
* InformationInterface.php
* Copyright (c) 2017 thegrumpydictator@gmail.com
* This software may be modified and distributed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International License.
*
* See the LICENSE file for details.
*/
declare(strict_types=1);
namespace FireflyIII\Support\Import\Information;
use FireflyIII\User;
/**
* Interface InformationInterface
*
* @package FireflyIII\Support\Import\Information
*/
interface InformationInterface
{
/**
* Returns a collection of accounts. Preferrably, these follow a uniform Firefly III format so they can be managed over banks.
*
2017-08-26 06:21:22 +02:00
* The format for these bank accounts is basically this:
*
* id: bank specific id
* name: bank appointed name
* number: account number (usually IBAN)
* currency: ISO code of currency
*
* any other fields are optional but can be useful:
* image: logo or account specific thing
*
* @return array
2017-08-19 09:22:44 +02:00
*/
2017-08-26 06:21:22 +02:00
public function getAccounts(): array;
2017-09-09 06:41:45 +02:00
/**
* Set the user for this Prerequisites-routine. Class is expected to implement and save this.
*
* @param User $user
*/
public function setUser(User $user): void;
2017-08-31 06:47:18 +02:00
}