class Provider (View source)

Value object for oEmbed providers.

Properties

protected string $name

The provider name.

protected string $url

The provider URL.

protected Endpoint[] $endpoints

The provider endpoints.

Methods

__construct(string $name, string $url, array $endpoints)

Provider constructor.

string
getName()

Returns the provider name.

string
getUrl()

Returns the provider URL.

getEndpoints()

Returns the provider endpoints.

Details

__construct(string $name, string $url, array $endpoints)

Provider constructor.

Parameters

string $name

The provider name.

string $url

The provider URL.

array $endpoints

List of endpoints this provider exposes.

Exceptions

ProviderException

string getName()

Returns the provider name.

Return Value

string

Name of the provider.

string getUrl()

Returns the provider URL.

Return Value

string

URL of the provider.

Endpoint[] getEndpoints()

Returns the provider endpoints.

Return Value

Endpoint[]

List of endpoints this provider exposes.