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)

Parameters

string $url @url

at line 47
int getWidth()

Get width of this Embed

Return Value

int

at line 52
int getHeight()

Get height of this Embed

Return Value

int

at line 57
string getPreviewURL()

Get preview url

Return Value

string

at line 80
string getName()

Get human readable name for this resource

Return Value

string

at line 89
string getType()

Get Embed type

Return Value

string

at line 94
bool validate()

Validate this resource

Return Value

bool

at line 103
$this setOptions(array $options)

Parameters

array $options

Return Value

$this

at line 112
array getOptions()

Return Value

array

at line 121
$this setDispatcher(DispatcherInterface $dispatcher)

Parameters

DispatcherInterface $dispatcher

Return Value

$this

at line 130
DispatcherInterface getDispatcher()

Return Value

DispatcherInterface

at line 140
Adapter getEmbed()

Returns a bootstrapped Embed object

Return Value

Adapter