. */ declare(strict_types=1); namespace FireflyIII\Support\Import\Information; use FireflyIII\User; /** * Interface InformationInterface. */ interface InformationInterface { /** * Returns a collection of accounts. Preferrably, these follow a uniform Firefly III format so they can be managed over banks. * * 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 */ public function getAccounts(): array; /** * Set the user for this Prerequisites-routine. Class is expected to implement and save this. * * @param User $user */ public function setUser(User $user): void; }