2015-07-18 02:49:29 -05:00
|
|
|
<?php
|
2016-02-05 05:08:25 -06:00
|
|
|
declare(strict_types = 1);
|
2015-07-18 02:49:29 -05:00
|
|
|
namespace FireflyIII\Helpers\Attachments;
|
|
|
|
|
2015-07-18 14:32:31 -05:00
|
|
|
use FireflyIII\Models\Attachment;
|
2015-07-18 02:49:29 -05:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Illuminate\Support\MessageBag;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface AttachmentHelperInterface
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Helpers\Attachments
|
|
|
|
*/
|
|
|
|
interface AttachmentHelperInterface
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
2016-01-19 06:59:54 -06:00
|
|
|
* @param Attachment $attachment
|
2015-07-18 02:49:29 -05:00
|
|
|
*
|
2016-01-19 06:59:54 -06:00
|
|
|
* @return mixed
|
2015-07-18 02:49:29 -05:00
|
|
|
*/
|
2016-01-19 06:59:54 -06:00
|
|
|
public function getAttachmentLocation(Attachment $attachment);
|
2015-07-18 02:49:29 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return MessageBag
|
|
|
|
*/
|
|
|
|
public function getErrors();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return MessageBag
|
|
|
|
*/
|
|
|
|
public function getMessages();
|
|
|
|
|
2015-07-18 14:32:31 -05:00
|
|
|
/**
|
2016-01-19 06:59:54 -06:00
|
|
|
* @param Model $model
|
2015-07-18 14:32:31 -05:00
|
|
|
*
|
2016-01-19 06:59:54 -06:00
|
|
|
* @return bool
|
2015-07-18 14:32:31 -05:00
|
|
|
*/
|
2016-01-19 06:59:54 -06:00
|
|
|
public function saveAttachmentsForModel(Model $model);
|
2015-07-18 14:32:31 -05:00
|
|
|
|
2015-07-19 02:38:44 -05:00
|
|
|
}
|