class EmbedResource implements Embeddable (View source)

Encapsulation of an embed tag, linking to an external media source.

Methods

__construct($url)

No description

int
getWidth()

Get width of this Embed

int
getHeight()

Get height of this Embed

string
getPreviewURL()

Get preview url

string
getName()

Get human readable name for this resource

string
getType()

Get Embed type

bool
validate()

Validate this resource

$this
setOptions(array $options)

No description

array
getOptions()

No description

$this
setDispatcher(DispatcherInterface $dispatcher)

No description

DispatcherInterface
getDispatcher()

No description

Adapter
getEmbed()

Returns a bootstrapped Embed object

Details

__construct($url)

Parameters

$url

int getWidth()

Get width of this Embed

Return Value

int

int getHeight()

Get height of this Embed

Return Value

int

string getPreviewURL()

Get preview url

Return Value

string

string getName()

Get human readable name for this resource

Return Value

string

string getType()

Get Embed type

Return Value

string

bool validate()

Validate this resource

Return Value

bool

$this setOptions(array $options)

Parameters

array $options

Return Value

$this

array getOptions()

Return Value

array

$this setDispatcher(DispatcherInterface $dispatcher)

Parameters

DispatcherInterface $dispatcher

Return Value

$this

DispatcherInterface getDispatcher()

Return Value

DispatcherInterface

Adapter getEmbed()

Returns a bootstrapped Embed object

Return Value

Adapter