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

42 lines
727 B
PHP
Raw Normal View History

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