mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code quality update.
This commit is contained in:
@@ -33,6 +33,8 @@ use Illuminate\Support\MessageBag;
|
||||
interface AttachmentHelperInterface
|
||||
{
|
||||
/**
|
||||
* Get content of an attachment.
|
||||
*
|
||||
* @param Attachment $attachment
|
||||
*
|
||||
* @return string
|
||||
@@ -40,6 +42,8 @@ interface AttachmentHelperInterface
|
||||
public function getAttachmentContent(Attachment $attachment): string;
|
||||
|
||||
/**
|
||||
* Get the location of an attachment.
|
||||
*
|
||||
* @param Attachment $attachment
|
||||
*
|
||||
* @return string
|
||||
@@ -47,16 +51,22 @@ interface AttachmentHelperInterface
|
||||
public function getAttachmentLocation(Attachment $attachment): string;
|
||||
|
||||
/**
|
||||
* Get all attachments.
|
||||
*
|
||||
* @return Collection
|
||||
*/
|
||||
public function getAttachments(): Collection;
|
||||
|
||||
/**
|
||||
* Get all errors.
|
||||
*
|
||||
* @return MessageBag
|
||||
*/
|
||||
public function getErrors(): MessageBag;
|
||||
|
||||
/**
|
||||
* Get all messages/
|
||||
*
|
||||
* @return MessageBag
|
||||
*/
|
||||
public function getMessages(): MessageBag;
|
||||
@@ -72,6 +82,8 @@ interface AttachmentHelperInterface
|
||||
public function saveAttachmentFromApi(Attachment $attachment, string $content): bool;
|
||||
|
||||
/**
|
||||
* Save attachments that got uploaded.
|
||||
*
|
||||
* @param Model $model
|
||||
* @param null|array $files
|
||||
*
|
||||
|
Reference in New Issue
Block a user