mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-23 15:03:14 -06:00
107 lines
1.7 KiB
PHP
107 lines
1.7 KiB
PHP
<?php
|
|
|
|
|
|
namespace Firefly\Storage\Account;
|
|
|
|
/**
|
|
* Interface AccountRepositoryInterface
|
|
*
|
|
* @package Firefly\Storage\Account
|
|
*/
|
|
interface AccountRepositoryInterface
|
|
{
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function count();
|
|
|
|
/**
|
|
* @param $name
|
|
* @param \AccountType $type
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function createOrFind($name, \AccountType $type);
|
|
|
|
/**
|
|
* @param $name
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function createOrFindBeneficiary($name);
|
|
|
|
/**
|
|
* @param \Account $account
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function destroy(\Account $account);
|
|
|
|
/**
|
|
* @param $accountId
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function find($accountId);
|
|
|
|
/**
|
|
* @param $name
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function findByName($name);
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function get();
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getActiveDefault();
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getActiveDefaultAsSelectList();
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getBeneficiaries();
|
|
|
|
/**
|
|
* @param $ids
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getByIds(array $ids);
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getCashAccount();
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getDefault();
|
|
|
|
/**
|
|
* @param $data
|
|
*
|
|
* @return \Account
|
|
*/
|
|
public function store($data);
|
|
|
|
/**
|
|
* @param \Account $account
|
|
* @param $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function update(\Account $account, $data);
|
|
|
|
}
|