mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 11:48:05 +00:00
53 lines
796 B
PHP
53 lines
796 B
PHP
<?php
|
|
|
|
namespace Firefly\Storage\Piggybank;
|
|
|
|
|
|
/**
|
|
* Interface LimitRepositoryInterface
|
|
*
|
|
* @package Firefly\Storage\Limit
|
|
*/
|
|
interface PiggybankRepositoryInterface
|
|
{
|
|
|
|
/**
|
|
* @param $piggyBankId
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function find($piggyBankId);
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function count();
|
|
|
|
/**
|
|
* @param $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function store($data);
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function get();
|
|
|
|
/**
|
|
* @param \Piggybank $piggyBank
|
|
* @param $amount
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function updateAmount(\Piggybank $piggyBank, $amount);
|
|
|
|
/**
|
|
* @param $data
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function update($data);
|
|
|
|
}
|