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

44 lines
822 B
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-11 00:35:10 -06:00
/**
* Interface AccountRepositoryInterface
*
* @package FireflyIII\Repositories\Account
*/
2015-02-09 00:23:39 -06:00
interface AccountRepositoryInterface
{
2015-02-11 00:35:10 -06:00
/**
* @param array $data
*
* @return Account
2015-02-11 00:35:10 -06:00
*/
2015-02-09 00:23:39 -06:00
public function store(array $data);
/**
* @param Account $account
*
* @return boolean
*/
public function destroy(Account $account);
/**
* @param Account $account
* @param array $data
*
* @return Account
*/
public function update(Account $account, array $data);
/**
* @param Account $account
*
* @return TransactionJournal|null
*/
public function openingBalanceTransaction(Account $account);
2015-02-09 00:23:39 -06:00
}