MetaFox

SavedItem extends JsonResource
in package
Uses HasStatistic

Class SavedItem.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Properties

$resource  : Saved
$collectionId  : int|null

Methods

setCollectionId()  : self
toArray()  : array<string, mixed>
Transform the resource collection into an array.
getCustomExtra()  : array<string, bool>
getStatistic()  : array<string, mixed>
listRepository()  : SavedListRepositoryInterface
handleTitle()  : string

Properties

$collectionId

private int|null $collectionId = null

Methods

setCollectionId()

public setCollectionId(int|null $collectionId) : self
Parameters
$collectionId : int|null
Return values
self

toArray()

Transform the resource collection into an array.

public toArray(Request $request) : array<string, mixed>
Parameters
$request : Request
Tags
throws
AuthenticationException
Return values
array<string, mixed>

getCustomExtra()

protected getCustomExtra() : array<string, bool>
Tags
throws
AuthenticationException
Return values
array<string, bool>

getStatistic()

protected getStatistic() : array<string, mixed>
Tags
throws
AuthenticationException
Return values
array<string, mixed>

handleTitle()

private handleTitle(Content $item, string $title) : string
Parameters
$item : Content
$title : string
Return values
string

        
On this page

Search results