2015-07-19 02:37:28 -05:00
|
|
|
<?php
|
2016-02-05 05:08:25 -06:00
|
|
|
declare(strict_types = 1);
|
2015-07-19 02:37:28 -05:00
|
|
|
|
|
|
|
namespace FireflyIII\Repositories\Attachment;
|
|
|
|
|
|
|
|
use FireflyIII\Models\Attachment;
|
2016-02-22 23:39:01 -06:00
|
|
|
use Illuminate\Support\Collection;
|
2015-07-19 02:37:28 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface AttachmentRepositoryInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Repositories\Attachment
|
|
|
|
*/
|
|
|
|
interface AttachmentRepositoryInterface
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param Attachment $attachment
|
|
|
|
*
|
2015-07-26 08:51:07 -05:00
|
|
|
* @return bool
|
2015-07-19 02:37:28 -05:00
|
|
|
*/
|
2016-02-06 11:59:48 -06:00
|
|
|
public function destroy(Attachment $attachment): bool;
|
2015-07-19 02:53:58 -05:00
|
|
|
|
2016-02-22 23:39:01 -06:00
|
|
|
/**
|
|
|
|
* @return Collection
|
|
|
|
*/
|
|
|
|
public function get(): Collection;
|
|
|
|
|
2015-07-19 02:53:58 -05:00
|
|
|
/**
|
|
|
|
* @param Attachment $attachment
|
2015-07-26 08:51:07 -05:00
|
|
|
* @param array $attachmentData
|
2015-07-19 02:53:58 -05:00
|
|
|
*
|
2015-07-26 08:51:07 -05:00
|
|
|
* @return Attachment
|
2015-07-19 02:53:58 -05:00
|
|
|
*/
|
2016-02-06 11:59:48 -06:00
|
|
|
public function update(Attachment $attachment, array $attachmentData): Attachment;
|
2015-07-19 02:38:44 -05:00
|
|
|
}
|
2015-07-19 02:53:58 -05:00
|
|
|
|