mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Some small updates to various classes to support new stuff.
This commit is contained in:
@@ -16,14 +16,6 @@ interface AccountRepositoryInterface
|
||||
*/
|
||||
public function count();
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param \AccountType $type
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function createOrFind($name, \AccountType $type);
|
||||
|
||||
/**
|
||||
* Gets a list of accounts that have the mentioned type. Will automatically convert
|
||||
* strings in this array to actual (model) account types.
|
||||
@@ -35,11 +27,11 @@ interface AccountRepositoryInterface
|
||||
public function getOfTypes(array $types);
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param array $data
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function createOrFindBeneficiary($name);
|
||||
public function firstOrCreate(array $data);
|
||||
|
||||
/**
|
||||
* @param \Account $account
|
||||
@@ -61,19 +53,6 @@ interface AccountRepositoryInterface
|
||||
*/
|
||||
public function findAccountType($type);
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param \AccountType $type
|
||||
* @return mixed
|
||||
*/
|
||||
public function findByName($name, \AccountType $type = null);
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @return mixed
|
||||
*/
|
||||
public function findByNameAny($name);
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
@@ -84,16 +63,6 @@ interface AccountRepositoryInterface
|
||||
*/
|
||||
public function getActiveDefault();
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getActiveDefaultAsSelectList();
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getBeneficiaries();
|
||||
|
||||
/**
|
||||
* @param $ids
|
||||
*
|
||||
|
Reference in New Issue
Block a user