Table of Contents
Interfaces
- EmbedAdapterInterface
- Interface for a service which updates the embed code(s) for the given array of embeds
Properties
-
$decorated
: EmbedAdapterInterface
-
$regex
: string
Methods
-
__construct()
: mixed
-
updateEmbeds()
: void
-
createRegex()
: string
__construct()
public
__construct(EmbedAdapterInterface $decorated, array<string|int, string> $allowedDomains) : mixed
Parameters
-
$decorated
: EmbedAdapterInterface
-
-
$allowedDomains
: array<string|int, string>
-
updateEmbeds()
public
updateEmbeds(array<string|int, mixed> $embeds) : void
Parameters
-
$embeds
: array<string|int, mixed>
-
createRegex()
private
static createRegex(array<string|int, string> $allowedDomains) : string
Parameters
-
$allowedDomains
: array<string|int, string>
-
-
psalm-return
-