Files
firefly-iii/app/lib/FireflyIII/Database/Account/AccountInterface.php

49 lines
965 B
PHP
Raw Normal View History

<?php
2014-12-13 22:11:51 +01:00
namespace FireflyIII\Database\Account;
use Illuminate\Support\Collection;
/**
* Interface AccountInterface
*
* @package FireflyIII\Database
*/
interface AccountInterface
{
/**
2014-11-12 22:37:09 +01:00
* Counts the number of accounts found with the included types.
*
2014-11-12 22:37:09 +01:00
* @param array $types
*
2014-11-12 22:37:09 +01:00
* @return int
*/
2014-11-12 22:37:09 +01:00
public function countAccountsByType(array $types);
/**
2014-11-12 22:37:09 +01:00
* Get all accounts of the selected types. Is also capable of handling DataTables' parameters.
*
2014-11-12 22:37:09 +01:00
* @param array $types
*
* @return Collection
*/
public function getAccountsByType(array $types);
/**
* @param \Account $account
*
* @return \TransactionJournal|null
*/
public function openingBalanceTransaction(\Account $account);
/**
* @param \Account $account
2014-11-12 22:37:09 +01:00
* @param array $data
*
* @return bool
*/
public function storeInitialBalance(\Account $account, array $data);
2015-01-02 06:16:49 +01:00
}