EmbedResource
class EmbedResource implements Embeddable
Encapsulation of an embed tag, linking to an external media source.
Methods
__construct(string $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
at line 42
__construct(string $url)
at line 47
int
getWidth()
Get width of this Embed
at line 52
int
getHeight()
Get height of this Embed
at line 57
string
getPreviewURL()
Get preview url
at line 80
string
getName()
Get human readable name for this resource
at line 89
string
getType()
Get Embed type
at line 94
bool
validate()
Validate this resource
at line 103
$this
setOptions(array $options)
at line 112
array
getOptions()
at line 121
$this
setDispatcher(DispatcherInterface $dispatcher)
at line 130
DispatcherInterface
getDispatcher()
at line 140
Adapter
getEmbed()
Returns a bootstrapped Embed object