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