Reference
in package
implements
IReference
Tags
Table of Contents
Interfaces
Properties
- $accessible : bool
- $contentType : string|null
- $description : string|null
- $imageUrl : string|null
- $reference : string
- $richObject : array<string|int, mixed>|null
- $richObjectType : string|null
- $title : string|null
- $url : string|null
Methods
- __construct() : mixed
- fromCache() : IReference
- getAccessible() : bool
- Accessible flag indicates if the user has access to the provided reference
- getDescription() : string|null
- getId() : string
- getImageContentType() : string|null
- getImageUrl() : string|null
- getOpenGraphObject() : OpenGraphObject
- Returns the opengraph rich object representation
- getRichObject() : array<string, mixed>
- Returns the reference specific rich object representation
- getRichObjectType() : string
- Returns the type of the reference specific rich object
- getTitle() : string
- getUrl() : string
- jsonSerialize() : OpenGraphObject, accessible: bool}
- setAccessible() : void
- Accessible flag indicates if the user has access to the provided reference
- setDescription() : void
- setImageContentType() : void
- setImageUrl() : void
- setRichObject() : void
- Set the reference specific rich object representation
- setTitle() : void
- setUrl() : void
- toCache() : array<string|int, mixed>
Properties
$accessible
protected
bool
$accessible
= true
$contentType
protected
string|null
$contentType
= null
$description
protected
string|null
$description
= null
$imageUrl
protected
string|null
$imageUrl
= null
$reference
protected
string
$reference
$richObject
protected
array<string|int, mixed>|null
$richObject
= null
$richObjectType
protected
string|null
$richObjectType
= null
$title
protected
string|null
$title
= null
$url
protected
string|null
$url
= null
Methods
__construct()
public
__construct(string $reference) : mixed
Parameters
- $reference : string
Tags
fromCache()
public
static fromCache(array<string|int, mixed> $cache) : IReference
Parameters
- $cache : array<string|int, mixed>
Tags
Return values
IReferencegetAccessible()
Accessible flag indicates if the user has access to the provided reference
public
getAccessible() : bool
Tags
Return values
boolgetDescription()
public
getDescription() : string|null
Tags
Return values
string|nullgetId()
public
getId() : string
Tags
Return values
stringgetImageContentType()
public
getImageContentType() : string|null
Tags
Return values
string|nullgetImageUrl()
public
getImageUrl() : string|null
Tags
Return values
string|nullgetOpenGraphObject()
Returns the opengraph rich object representation
public
getOpenGraphObject() : OpenGraphObject
Tags
Return values
OpenGraphObjectgetRichObject()
Returns the reference specific rich object representation
public
getRichObject() : array<string, mixed>
Tags
Return values
array<string, mixed>getRichObjectType()
Returns the type of the reference specific rich object
public
getRichObjectType() : string
Tags
Return values
stringgetTitle()
public
getTitle() : string
Tags
Return values
stringgetUrl()
public
getUrl() : string
Tags
Return values
stringjsonSerialize()
public
jsonSerialize() : OpenGraphObject, accessible: bool}
Tags
Return values
OpenGraphObject, accessible: bool}setAccessible()
Accessible flag indicates if the user has access to the provided reference
public
setAccessible(bool $accessible) : void
Parameters
- $accessible : bool
Tags
setDescription()
public
setDescription(string|null $description) : void
Parameters
- $description : string|null
Tags
setImageContentType()
public
setImageContentType(string|null $contentType) : void
Parameters
- $contentType : string|null
Tags
setImageUrl()
public
setImageUrl(string|null $imageUrl) : void
Parameters
- $imageUrl : string|null
Tags
setRichObject()
Set the reference specific rich object representation
public
setRichObject(string $type, array<string|int, mixed>|null $richObject) : void
Parameters
- $type : string
- $richObject : array<string|int, mixed>|null
Tags
setTitle()
public
setTitle(string $title) : void
Parameters
- $title : string
Tags
setUrl()
public
setUrl(string|null $url) : void
Parameters
- $url : string|null
Tags
toCache()
public
static toCache(IReference $reference) : array<string|int, mixed>
Parameters
- $reference : IReference