Code cleanup.

This commit is contained in:
James Cole
2023-12-20 19:35:52 +01:00
parent c4f6366642
commit 64ec0cf62e
997 changed files with 12908 additions and 28136 deletions

View File

@@ -34,60 +34,36 @@ interface AttachmentHelperInterface
{
/**
* Get content of an attachment.
*
* @param Attachment $attachment
*
* @return string
*/
public function getAttachmentContent(Attachment $attachment): string;
/**
* Get the location of an attachment.
*
* @param Attachment $attachment
*
* @return string
*/
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;
/**
* Uploads a file as a string.
*
* @param Attachment $attachment
* @param string $content
*
* @return bool
*/
public function saveAttachmentFromApi(Attachment $attachment, string $content): bool;
/**
* Save attachments that got uploaded.
*
* @param object $model
* @param null|array $files
*
* @return bool
*/
public function saveAttachmentsForModel(object $model, ?array $files): bool;
}