MediaObjectInterface
extends
IdentifierInterface
in
Media Object Interface
Table of Contents
Methods
- createResponse() : ResponseInterface
- Create media response.
- exists() : bool
- Returns true if the object exists.
- get() : mixed
- getId() : string
- Get identifier's ID.
- getMeta() : array<string|int, mixed>
- Get metadata associated to the media object.
- getType() : string
- Get identifier's type.
- getUrl() : string
- Return URL pointing to the media object.
Methods
createResponse()
Create media response.
public
createResponse(array<string|int, mixed> $actions) : ResponseInterface
Parameters
- $actions : array<string|int, mixed>
Tags
Return values
ResponseInterfaceexists()
Returns true if the object exists.
public
exists() : bool
Tags
Return values
boolget()
public
get(string $field) : mixed
Parameters
- $field : string
Tags
getId()
Get identifier's ID.
public
getId() : string
Tags
Return values
stringgetMeta()
Get metadata associated to the media object.
public
getMeta() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getType()
Get identifier's type.
public
getType() : string
Tags
Return values
stringgetUrl()
Return URL pointing to the media object.
public
getUrl() : string