mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-03 12:47:17 -06:00
42 lines
727 B
PHP
42 lines
727 B
PHP
<?php
|
|
|
|
namespace FireflyIII\Helpers\Attachments;
|
|
|
|
use FireflyIII\Models\Attachment;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Support\MessageBag;
|
|
|
|
/**
|
|
* Interface AttachmentHelperInterface
|
|
*
|
|
* @package FireflyIII\Helpers\Attachments
|
|
*/
|
|
interface AttachmentHelperInterface
|
|
{
|
|
|
|
/**
|
|
* @param Model $model
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function saveAttachmentsForModel(Model $model);
|
|
|
|
/**
|
|
* @return MessageBag
|
|
*/
|
|
public function getErrors();
|
|
|
|
/**
|
|
* @return MessageBag
|
|
*/
|
|
public function getMessages();
|
|
|
|
/**
|
|
* @param Attachment $attachment
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getAttachmentLocation(Attachment $attachment);
|
|
|
|
}
|