Move notes for attachments to different object. This sacrifices the original notes.

This commit is contained in:
James Cole
2018-03-19 15:28:35 +01:00
parent 6a1d39d5f8
commit 909f72e6be
9 changed files with 144 additions and 31 deletions

View File

@@ -32,6 +32,7 @@ use Illuminate\Support\Collection;
*/
interface AttachmentRepositoryInterface
{
/**
* @param Attachment $attachment
*
@@ -80,6 +81,15 @@ interface AttachmentRepositoryInterface
*/
public function getContent(Attachment $attachment): string;
/**
* Get attachment note text or empty string.
*
* @param Attachment $attachment
*
* @return string
*/
public function getNoteText(Attachment $attachment): string;
/**
* @param User $user
*/