mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -06:00
38 lines
734 B
PHP
38 lines
734 B
PHP
<?php
|
|
declare(strict_types = 1);
|
|
|
|
namespace FireflyIII\Repositories\Attachment;
|
|
|
|
use FireflyIII\Models\Attachment;
|
|
use Illuminate\Support\Collection;
|
|
|
|
/**
|
|
* Interface AttachmentRepositoryInterface
|
|
*
|
|
* @package FireflyIII\Repositories\Attachment
|
|
*/
|
|
interface AttachmentRepositoryInterface
|
|
{
|
|
|
|
/**
|
|
* @param Attachment $attachment
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function destroy(Attachment $attachment): bool;
|
|
|
|
/**
|
|
* @return Collection
|
|
*/
|
|
public function get(): Collection;
|
|
|
|
/**
|
|
* @param Attachment $attachment
|
|
* @param array $attachmentData
|
|
*
|
|
* @return Attachment
|
|
*/
|
|
public function update(Attachment $attachment, array $attachmentData): Attachment;
|
|
}
|
|
|