Remapped all library classes.

This commit is contained in:
James Cole
2014-12-13 22:11:51 +01:00
parent 3cfa3f3b27
commit 21a0a5d573
23 changed files with 241 additions and 293 deletions

View File

@@ -0,0 +1,48 @@
<?php
namespace FireflyIII\Database;
use Illuminate\Support\Collection;
/**
* Interface CommonDatabaseCalls
*
* @package FireflyIII\Database
*/
interface CommonDatabaseCalls
{
/**
* Returns an object with id $id.
*
* @param int $id
*
* @return \Eloquent
*/
public function find($id);
/**
* Finds an account type using one of the "$what"'s: expense, asset, revenue, opening, etc.
*
* @param $what
*
* @return \AccountType|null
*/
public function findByWhat($what);
/**
* Returns all objects.
*
* @return Collection
*/
public function get();
/**
* @param array $ids
*
* @return Collection
*/
public function getByIds(array $ids);
}