Code quality update.

This commit is contained in:
James Cole
2018-07-07 21:17:46 +02:00
parent cbe47a9dcc
commit e78a59a8a8
26 changed files with 236 additions and 185 deletions

View File

@@ -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
*