Some small updates to various classes to support new stuff.

This commit is contained in:
James Cole
2014-09-12 17:34:54 +02:00
parent a1ba340ead
commit 0203fee174
8 changed files with 225 additions and 177 deletions

View File

@@ -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
*