Documentation

MediaObjectInterface extends IdentifierInterface

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
phpstan-pure
Return values
ResponseInterface

exists()

Returns true if the object exists.

public exists() : bool
Tags
phpstan-pure
Return values
bool

getId()

Get identifier's ID.

public getId() : string
Tags
phpstan-pure
Return values
string

getMeta()

Get metadata associated to the media object.

public getMeta() : array<string|int, mixed>
Tags
phpstan-pure
Return values
array<string|int, mixed>

getType()

Get identifier's type.

public getType() : string
Tags
phpstan-pure
Return values
string

getUrl()

Return URL pointing to the media object.

public getUrl() : string
Tags
phpstan-pure
Return values
string

        
On this page

Search results