2014-07-26 11:53:41 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Firefly\Helper\Controllers;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface AccountInterface
|
|
|
|
*
|
|
|
|
* @package Firefly\Helper\Controllers
|
|
|
|
*/
|
|
|
|
interface AccountInterface
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Build the index:
|
|
|
|
*
|
|
|
|
* @param Collection $accounts
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function index(Collection $accounts);
|
|
|
|
|
|
|
|
/**
|
2014-08-10 08:01:46 -05:00
|
|
|
* @param \Account $account
|
2014-07-26 11:53:41 -05:00
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function openingBalanceTransaction(\Account $account);
|
|
|
|
|
2014-07-27 13:29:58 -05:00
|
|
|
/**
|
|
|
|
* @param \Account $account
|
|
|
|
* @param $perPage
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function show(\Account $account, $perPage);
|
|
|
|
|
2014-07-26 11:53:41 -05:00
|
|
|
}
|