PendingItem
        
        extends JsonResource
    
    
            
            in package
            
        
    
    
            
            Uses
                            HasTransformContent                    
    
Class PendingItem.
Table of Contents
Properties
Methods
- getTransformContent() : string|null
 - toArray() : array<string, mixed>
 - Transform the resource collection into an array.
 - formatTextWithImage() : string
 - getImageLink() : string
 - handleText() : string
 
Properties
$resource
    public
        Comment
    $resource
    
    
    
    
Methods
getTransformContent()
    public
                    getTransformContent([bool $parseUserFullLink = false ]) : string|null
    Parameters
- $parseUserFullLink : bool = false
 
Return values
string|nulltoArray()
Transform the resource collection into an array.
    public
                    toArray(Request $request) : array<string, mixed>
    Parameters
- $request : Request
 
Tags
Return values
array<string, mixed>formatTextWithImage()
    protected
                    formatTextWithImage(string $text, string $imageLink) : string
    Parameters
- $text : string
 - $imageLink : string
 
Return values
stringgetImageLink()
    protected
                    getImageLink(CommentAttachment $attachment) : string
    Parameters
- $attachment : CommentAttachment
 
Return values
stringhandleText()
    protected
                    handleText() : string