FeedEmbed
extends JsonResource
in package
Uses
HasStatistic, ShareFeedInfoTrait
Class PhotoGroupEmbed.
Tags
Table of Contents
Constants
- DEFAULT_LOADED = 4
Properties
Methods
- getStatistic() : array<string, mixed>
- toArray() : array<string, mixed>
- Transform the resource collection into an array.
- toFeedContent() : string|null
- toLocation() : array<string|int, mixed>|null
- getFeedTransformContent() : string|null
- parseFeedHashtags() : string
- getFeedInfo() : string
- getSharedFeedInfos() : array<string|int, mixed>
Constants
DEFAULT_LOADED
public
mixed
DEFAULT_LOADED
= 4
Properties
$resource
public
PhotoGroup
$resource
Methods
getStatistic()
public
getStatistic() : array<string, mixed>
Return values
array<string, mixed>toArray()
Transform the resource collection into an array.
public
toArray(Request $request) : array<string, mixed>
Parameters
- $request : Request
Return values
array<string, mixed>toFeedContent()
public
toFeedContent(HasFeedContent $item) : string|null
Parameters
- $item : HasFeedContent
Return values
string|nulltoLocation()
public
toLocation(HasLocationCheckin $item) : array<string|int, mixed>|null
Parameters
- $item : HasLocationCheckin
Return values
array<string|int, mixed>|nullgetFeedTransformContent()
protected
getFeedTransformContent(Content $feed) : string|null
Parameters
- $feed : Content
Return values
string|nullparseFeedHashtags()
protected
parseFeedHashtags(HasHashTag $feed, string $content) : string
Parameters
- $feed : HasHashTag
- $content : string
Return values
stringgetFeedInfo()
private
getFeedInfo() : string
Return values
stringgetSharedFeedInfos()
private
getSharedFeedInfos() : array<string|int, mixed>