firefly-iii/app/Repositories/Account/AccountRepositoryInterface.php

59 lines
1.1 KiB
PHP
Raw Normal View History

2015-02-09 00:23:39 -06:00
<?php
namespace FireflyIII\Repositories\Account;
use FireflyIII\Models\Account;
use FireflyIII\Models\TransactionJournal;
2015-02-21 05:16:41 -06:00
2015-02-11 00:35:10 -06:00
/**
* Interface AccountRepositoryInterface
*
* @package FireflyIII\Repositories\Account
*/
2015-02-09 00:23:39 -06:00
interface AccountRepositoryInterface
{
/**
* @param Account $account
*
* @return boolean
*/
public function destroy(Account $account);
/**
* @param Account $account
2015-02-21 05:16:41 -06:00
* @param int $page
* @param string $range
*
2015-02-21 05:16:41 -06:00
* @return mixed
*/
2015-02-21 05:16:41 -06:00
public function getJournals(Account $account, $page, $range = 'session');
/**
* @param Account $account
*
* @return TransactionJournal|null
*/
public function openingBalanceTransaction(Account $account);
2015-02-21 05:16:41 -06:00
/**
* @param array $data
*
* @return Account
*/
public function store(array $data);
2015-02-21 05:16:41 -06:00
/**
* @param Account $account
* @param array $data
*
* @return Account
*/
public function update(Account $account, array $data);
2015-02-24 14:10:25 -06:00
/**
* @param Account $account
*
* @return float
*/
public function leftOnAccount(Account $account);
2015-02-09 00:23:39 -06:00
}