EmbedResource
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)
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)
array
getOptions()
$this
setDispatcher(DispatcherInterface $dispatcher)
DispatcherInterface
getDispatcher()
Adapter
getEmbed()
Returns a bootstrapped Embed object