firefly-iii/app/Helpers/Attachments/AttachmentHelperInterface.php

42 lines
727 B
PHP
Raw Normal View History

2015-07-18 02:49:29 -05:00
<?php
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
{
/**
* @param Model $model
*
* @return bool
*/
public function saveAttachmentsForModel(Model $model);
/**
* @return MessageBag
*/
public function getErrors();
/**
* @return MessageBag
*/
public function getMessages();
2015-07-18 14:32:31 -05:00
/**
* @param Attachment $attachment
*
* @return mixed
*/
public function getAttachmentLocation(Attachment $attachment);
2015-07-19 02:38:44 -05:00
}